HTTP Status Codes
The API attempts to return appropriate HTTP status codes for every request
Code | Text | Description |
200 | OK | Success! |
304 | Not Modified | There was no new data to return. |
400 | Bad Request | The request was invalid. An accompanying error message will explain why. |
401 | Unauthorized | Authentication credentials were missing or incorrect. |
403 | Forbidden | The request is understood, but it has been refused. An accompanying error message will explain why. |
404 | Not Found | The URI requested is invalid or the resource requested, such as a user, does not exists. |
422 | Company Not Found | Company details are not found or does not exists. |
500 | Internal Server Error | Something is broken. Please e-mail support so the ASI team can investigate. |
502 | Bad Gateway | Service is down or being upgraded. |
503 | Service Unavailable | The servers are up, but overloaded with requests. Try again later. |
Error Messages
When the ASI Developers API returns error messages, it does so in your requested format. For example, an error from a JSON method might look like this:
The corresponding XML response would be: