powered by
Helper function to capture error messages returned by the API
err_handler(x)
response: The API response