Adding the exception catching to all the endpoints in the API