Add in error handling as part of the API