List of usage examples for org.springframework.http HttpStatus NOT_FOUND
HttpStatus NOT_FOUND
To view the source code for org.springframework.http HttpStatus NOT_FOUND.
Click Source Link
From source file:com.api.Responses.java
public static ResponseEntity notFound() { return new ResponseEntity(HttpStatus.NOT_FOUND); }
From source file:nu.yona.server.messaging.service.MessageNotFoundException.java
public static MessageNotFoundException messageNotFound(long id) { return new MessageNotFoundException(HttpStatus.NOT_FOUND, "error.message.not.found", id); }
From source file:nu.yona.server.subscriptions.service.BuddyNotFoundException.java
public static BuddyNotFoundException notFound(UUID id) { return new BuddyNotFoundException(HttpStatus.NOT_FOUND, "error.buddy.not.found", id); }
From source file:nu.yona.server.subscriptions.service.UserPhotoServiceException.java
public static UserPhotoServiceException notFoundById(UUID id) { return new UserPhotoServiceException(HttpStatus.NOT_FOUND, "error.user.photo.not.found.id", id); }
From source file:io.curly.commons.config.feign.ErrorDecoderFactory.java
public static Exception create(HttpStatus httpStatus, String reason) { if (httpStatus.equals(HttpStatus.NOT_FOUND)) { return new ResourceNotFoundException(reason); } else if (httpStatus.equals(HttpStatus.BAD_REQUEST)) { return new BadRequestException(reason); } else if (httpStatus.equals(HttpStatus.INTERNAL_SERVER_ERROR)) { return new InternalServerErrorException(reason); } else if (httpStatus.equals(HttpStatus.UNAUTHORIZED)) { return new UnauthorizedException(reason); } else if (httpStatus.equals(HttpStatus.UNSUPPORTED_MEDIA_TYPE)) { return new UnsupportedMediaTypeException(reason); }/*from w ww. j a v a 2 s. c om*/ return new BadRequestException(reason); }
From source file:nu.yona.server.goals.service.ActivityCategoryException.java
public static ActivityCategoryException notFound(UUID id) { return new ActivityCategoryException(HttpStatus.NOT_FOUND, "error.activitycategory.not.found", id); }
From source file:nu.yona.server.subscriptions.service.BuddyNotFoundException.java
public static BuddyNotFoundException notFoundForUser(UUID userId, UUID buddyUserId) { return new BuddyNotFoundException(HttpStatus.NOT_FOUND, "error.buddy.not.found.for.user", userId, buddyUserId);// www . j a v a 2 s . c o m }
From source file:nu.yona.server.device.service.DeviceServiceException.java
public static DeviceServiceException notFoundById(UUID id) { return new DeviceServiceException(HttpStatus.NOT_FOUND, "error.device.not.found.id", id); }
From source file:com.carlomicieli.jtrains.infrastructure.web.Responses.java
public static ResponseEntity<VndErrors> notFound(String logref) { return new ResponseEntity<>(new VndErrors(logref, "Resource not found"), HttpStatus.NOT_FOUND); }
From source file:nu.yona.server.device.service.DeviceServiceException.java
public static DeviceServiceException notFoundByAnonymizedId(UUID userAnonymizedId, UUID deviceAnonymizedId) { return new DeviceServiceException(HttpStatus.NOT_FOUND, "error.device.not.found.anonymized.id", userAnonymizedId, deviceAnonymizedId); }