Error codes
You can use the code to find out the result of the operation. The error codes supported in the current version of the API are listed below.
|
HTTP code |
Description |
|
400 |
Invalid request. |
|
403 |
User not registered in the Distribution Interface. |
|
404 |
Object not found. |
|
500500 |
Internal error in the service. |
If an error occurred while performing the operation, the result has the following format:
JSON
Several options are available for error messages in JSON format.
Option 1
{
"data": "{string}",
"result": "error"
}
|
Parameter |
Description |
|
|
Error description. |
|
|
Result of the operation. |
Option 2
If multiple errors have been found when parsing a certain statistics request form, the response will be as follows:
{
"result": "error",
"data": {
"field": "blocks",
"nested_errors": [
[],
[
{
"field": "fields",
"nested_errors": [
[
{
"field": "invalid",
"description": "{string - error 1 description}",
"message": [
"invalid"
]
},
{
"field": "invalid",
"description": "{string - error N description}",
"message": [
"invalid"
]
}
]
]
}
]
]
}
}
Was the article helpful?
Previous
Next