Disguise Cloud API provides a consistent error response structure to help you handle errors effectively. All errors will have the following return structure:
{
"error": {
"message": "Example message",
"details": "Example details providing further context"
}
}
The error response contains two main fields:
In addition, you will receive standard HTTP status codes to indicate the type of error that occurred as per RESTful API conventions.
Here are some common errors you might encounter while using the Cloud API:
To see all status codes the API uses, please refer to Status Codes.
To handle errors effectively, you should:
message
and details
fields in the error response to understand the cause of the error.By following these guidelines, you can ensure that your applications handle errors gracefully and maintain smooth interaction with the Disguise Cloud API.