> For the complete documentation index, see [llms.txt](https://docs.giftpro.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.giftpro.co.uk/errors.md).

# Errors

Our API uses normal HTTP response codes to provide feedback with errors, however in most cases the body of the response will include an error code that can be used, and a message with additional context.&#x20;

#### Example 400 error response

```json
{
    "result": {
        "type": "error",
        "reason": "invalid_json_syntax",
        "messages": [
            "Invalid JSON syntax in request body."
        ]
    }
}
```

#### Common error codes

This is a list of error codes that are shared across all endpoints, however each individual endpoint may have its own contextual error response as well.

|                           |
| ------------------------- |
| missing\_required\_field  |
| missing\_required\_params |
| invalid\_params           |
| invalid\_json\_syntax     |
