Update CustomErrorDecoder.java

This commit is contained in:
Amitabh Tiwari 2022-07-18 07:26:21 +05:30
parent 7f4cae20b0
commit 3574fa6fa2
1 changed files with 1 additions and 1 deletions

View File

@ -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");
} }