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

# Error handling

> Best practices on handling errors and other exceptions.

In some situations, the API may return an error. In general, errors can be classified as either server-side or client-side errors.

## Client errors

<Snippet file="errors/client-errors.mdx" />

Our [API reference](/reference/errors/client-errors) has more detail on the format of client errors. The [List 4XX errors](/reference/logs/list-api-error-logs) API can be used to see the latest client errors and the associated requests.

## Server errors

<Snippet file="errors/server-errors.mdx" />

Our [API reference](/reference/errors/server-errors) has more detail on the format of server errors.
