Error Handling
In case of error, the Sandbox Portal replies with a relevant HTTP status code. The list of possible status codes is, but not limited to:
400
Bad Request401
Unauthorized402
Malformed Request403
Forbidden404
Not Found405
Method Not Allowed429
Too Many Requests500
Internal Server Error
In addition to the HTTP status code, the body of the response contains a JSON describing the error.
The JSON has the following fields:
code
- an Integer representing the HTTP status codemessage
- a String with the description of the errorerrors
- an Array of Strings which provide additional information about the error. This field is optional.
Example of a response when trying to submit a URL with invalid options:
{ "code": 400, "message": "Failed validating request", "errors": [ "Invalid URL provided", "Invalid detonation object", "Invalid detonation options object" ] }