> For the complete documentation index, see [llms.txt](https://sharix.gitbook.io/sharix-tv-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharix.gitbook.io/sharix-tv-api/introduction/status-codes.md).

# Status Codes

The Sharix TV API will respond with one of the following HTTP status codes.

| Code  | Description                                                  |
| ----- | ------------------------------------------------------------ |
| `200` | Success                                                      |
| `400` | Bad Request - *request couldn't be parsed*                   |
| `401` | Unauthorized - *OAuth must be provided*                      |
| `404` | Not Found - *method exists, but no record found*             |
| `412` | Precondition Failed - *use application/json content type*    |
| `422` | Unprocessable Entity - *validation errors*                   |
| `500` | Server Error - *please open a GitHub issue*                  |
| `503` | Service Unavailable - *server overloaded (try again in 30s)* |
| `504` | Service Unavailable - *server overloaded (try again in 30s)* |
| `520` | Service Unavailable - *Cloudflare error*                     |
| `521` | Service Unavailable - *Cloudflare error*                     |
| `522` | Service Unavailable - *Cloudflare error*                     |
