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:
400Bad Request401Unauthorized402Malformed Request403Forbidden404Not Found405Method Not Allowed429Too Many Requests500Internal 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"
]
}