We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9efded commit c3df8c5Copy full SHA for c3df8c5
src/main/java/com/github/hrytsenko/jsondata/springboot/error/ExceptionAdvices.java
@@ -85,7 +85,7 @@ public ErrorResponse onForbidden(ServiceException.Forbidden exception) {
85
}
86
87
@ExceptionHandler(ServiceException.NotFound.class)
88
- @ResponseStatus(code = HttpStatus.FORBIDDEN)
+ @ResponseStatus(code = HttpStatus.NOT_FOUND)
89
public ErrorResponse onNotFound(ServiceException.NotFound exception) {
90
log.error("Not found", exception);
91
return ErrorResponse.create(exception.getCode(), correlationSource.getCorrelation());
0 commit comments