Update CustomErrorDecoder.java

This commit is contained in:
Amitabh Tiwari
2022-07-18 07:26:21 +05:30
parent 0178e76fa5
commit 7598800d40

View File

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