Added the error handling class to the API.