# Validation errors

Source: https://developers.swell.is/backend-api/errors/validation-errors

A validation error object is returned when a request could not be fulfilled due to one or more invalid values.

## Fields

- `code` (string): A distinct code indicating the cause of the error.
- `message` (string): A human-readable description of the error.
- `params` (object): Object containing parameter values related to the error.

## Example response

```json
{
  "errors": {
    "name": {
      "code": "REQUIRED",
      "message": "Required"
    },
    "email": {
      "code": "FORMAT_EMAIL",
      "message": "Must be a valid email address"
    }
  }
}
```
