A REST API developer will have two requirements related to error handling.
- Common place for Error handling
- Similar Error Response body with a proper HTTP status code across APIs
Both requirements can be addressed by using RestControllerAdvice annotation in Spring.