diff --git a/commons/web-common/src/main/java/com/schbrain/common/web/exception/GlobalExceptionHandler.java b/commons/web-common/src/main/java/com/schbrain/common/web/exception/GlobalExceptionHandler.java index 09df3e781fbd74d8db1afa515e75360d06eb696d..42f7204207cc5702c884b362c9c813418fca581f 100644 --- a/commons/web-common/src/main/java/com/schbrain/common/web/exception/GlobalExceptionHandler.java +++ b/commons/web-common/src/main/java/com/schbrain/common/web/exception/GlobalExceptionHandler.java @@ -72,6 +72,7 @@ public class GlobalExceptionHandler { return loggingThenBuildResponse(ex, SERVER_ERROR); } + @ResponseStatus(HttpStatus.NOT_FOUND) @ExceptionHandler(NoHandlerFoundException.class) public Object handleNoHandlerFoundException(NoHandlerFoundException ex) { return loggingThenBuildResponse(ex, PARAM_INVALID);