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

# Server-side errors (5XX)

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

<ResponseField name="type" type="string" required>
  The type of object returned. This is always `error`.
</ResponseField>

<ResponseField name="code" type="string" required>
  The machine-readable code for this error. This is one of the following values.

  * `server_error`
  * `bad_gateway`
  * `gateway_timeout`
</ResponseField>

<ResponseField name="type" type="number" required>
  The HTTP status code of the error. This can be `500`, `502`, or `504`.
</ResponseField>

<ResponseField name="message" type="string" required>
  The human-readable description of this error.
</ResponseField>

<ResponseField name="details" type="array">
  A list of validation errors for the request. This is always an empty array for a server error.
</ResponseField>
