Update CustomErrorDecoder.java
This commit is contained in:
@@ -13,7 +13,7 @@ public class CustomErrorDecoder implements ErrorDecoder {
|
||||
case 400:
|
||||
return new BadRequestException();
|
||||
case 404:
|
||||
return new NotFoundException();
|
||||
return new NotFoundException("Not found !!!");
|
||||
default:
|
||||
return new Exception("Generic error");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user