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