> For the complete documentation index, see [llms.txt](https://docs.paynow.gg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.paynow.gg/getting-started/error-response.md).

# Error Response

#### Fields

* `status` <sup><sub>integer<sub></sup>

  the HTTP status code for this error
* `code` <sup><sub>string<sub></sup>

  the type of error
* `message` <sup><sub>string<sub></sup>

  the error's message
* `errors` [<sup><sub>validation error<sub></sup>](#validation-error-structure) <sup><sub><mark style="color:yellow;">NULLABLE<mark style="color:yellow;"><sub></sup>

  list of validation errors, only used for certain APIs

{% code title="Example Error Response" fullWidth="false" %}

```json
{
	"status": 400,
	"code": "InvalidInput",
	"message": "cannot parse Steam ID from string: clearlynotasteamid"
}
```

{% endcode %}

### Validation Error Structure <a href="#validation-error-structure" id="validation-error-structure"></a>

#### Fields

* `code` <sup><sub>string<sub></sup>

  the type of error
* `message` <sup><sub>string<sub></sup>

  the error's message
* `path` <sup><sub>string array<sub></sup>

  path to property that caused the error
* `validation` <sup><sub>string<sub></sup>

  type of validation error

#### Note

In catastrophic cases, you might not get any of these values in response. This is however unlikely.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.paynow.gg/getting-started/error-response.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
