Internally used to handle errors from the API
- Source:
Methods
(static) handle(res, resData, callback, format)
- Source:
Handles HTTP response codes issued by the API.
All other codes are the result of a request not reaching the application.
Parameters:
Name | Type | Description |
---|---|---|
res |
object | the http response object |
resData |
object | the data contained in the response |
callback |
function | the users callback function to call |
format |
string | the format of the response data (json, xml, etc) |