The Exception Handler is called upon when the API run-time encounters any exception. This component can be called upon at any point during the processing of the request. The exception handler component will collate all the exceptions and provide a structured error response.
The error response is after that passed to the Request and Response handler component.
The ExpressAPI contains pre-defined error categories. The error message structure and messages are available to view in the OpenAPI specifications.