> ## Documentation Index
> Fetch the complete documentation index at: https://velocity-api-docs.medshift.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

Errors are indicated by a 4xx or 5xx HTTP status code. The table below lists common status codes used by this API.

| Status | Meaning                                       |
| ------ | --------------------------------------------- |
| 400    | Validation error                              |
| 401    | Missing or invalid authentication credentials |
| 403    | Insufficient permissions                      |
| 404    | Resource not found                            |
| 500    | Internal server error                         |

## General Errors

For most types of errors, the response body will include a description of the error in the `detail` key.

```json theme={null}
{
  "detail": "Something went wrong."
}
```

## Validation Errors

For validation errors (HTTP 400), the response body will map fields in the request to arrays of error messages.

```json theme={null}
{
  "email": ["Enter a valid email address."]
}
```

Error messages that aren't associated with any specific field are mapped to the `non_field_errors` key.

```json theme={null}
{
  "non_field_errors": ["This object already exists."]
}
```
