Error Codes & Responses

HTTP Status Codes

The API attempts to return appropriate HTTP status codes for every request

CodeTextDescription
200OKSuccess!
304Not ModifiedThere was no new data to return.
400Bad RequestThe request was invalid. An accompanying error message will explain why.
401UnauthorizedAuthentication credentials were missing or incorrect.
403Forbidden The request is understood, but it has been refused. An accompanying error message will explain why.
404Not FoundThe URI requested is invalid or the resource requested, such as a user, does not exists.
422Company Not FoundCompany details are not found or does not exists.
500Internal Server ErrorSomething is broken. Please e-mail support so the ASI team can investigate.
502Bad GatewayService is down or being upgraded.
503Service UnavailableThe 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: