Error Responses
Our Client libraries raise exceptions for many reasons, such as a invalid parameters, authentication errors, and network unavailability. We recommend writing code that gracefully handles all possible API exceptions. This guide contains some example error responses that you may recieve from the Decision Cloud API along with their expected formats.
Response Parameters
Example Responses
json
{
"message": "Unauthenticated."
}json
{
"message": "This action is unauthorized."
}json
{
"message": "Not Found"
}json
{
"message": "The given data was invalid.",
"errors": {
"attribute": [
"The :attribute field is required."
]
}
}json
{
"message": "Server Error"
}