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

# Errors

DisputeNinja uses standard HTTP response codes to indicate API request status:

* 2xx: Success
* 4xx: Client/input error (e.g., missing parameters)
* 5xx: Server error (rare)

Some 4xx errors include an error code for programmatic handling.

## Error Response Structure

All error responses contain:

<ResponseField name="type" type="string">
  Error type: `api_error` or `invalid_request_error`
</ResponseField>

<ResponseField name="code" type="string" optional>
  Short error code for programmatic handling
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable error description
</ResponseField>

<ResponseField name="param" type="string" optional>
  Parameter causing the error, if applicable
</ResponseField>

## Error Types

* `api_error`: DisputeNinja server issue (rare)
* `invalid_request_error`: Invalid parameters or request
