def error_endpoint(error):
 headers = None
 if error.response:
  headers = error.response.headers
 response = {config.STATUS: config.STATUS_ERR, config.ERROR: {'code': error.code, 'message': error.description}}
 return send_response(None, (response, None, None, error.code, headers))

def error_endpoint ( error ) : headers = None if error . response : headers = error . response . headers response = { config . STATUS : config . STATUS_ERR , config . ERROR : { 'code' : error . code , 'message' : error . description } } return send_response ( None , ( response , None , None , error . code , headers ) )
response returned when an error is raised by the api (e .