> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/distribution/doc/dg-v2/en/llms.txt

# 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**

```json
    {
      "data": "{string}",
      "result": "error"
    }
```

#|
||
**Parameter**
|
**Description**
||
||
`data`
|
Error description.
||
||
`result`
|
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:
    
```json
{
  "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"
                ]
              }
            ]
          ]
        }
      ]
    ]
  }
}            
```

