Files
directus/docs/reference/error-codes.md
Rijk van Zanten 817ccf3620 Overhaul docs (#3951)
* Add Quickstart Guide

* Update installation

* Remove unused files

* Update support/backing

* Tweaks in concepts

* Setup file structure for API reference 2.0

* Setup page layout for reference

* Add clean-urls plugin

* getting started updates

* Finish authentication rest

* getting started updates

* Render stylus in 2 spaces

* Various

* Various

* Finish activity docs

* Add collections reference

* Add extension reference

* concepts updates

* Fields/tweaks

* Add files doc

* Add revisions

* concepts docs

* More api reference

* Finish rest api reference (finally)

* initial concepts

* More things

* Add assets api ref

* Move sections from file to assets

* Add environment variables

* contributing docs

* Add field transforms page

* Left align table headers

* concept links

* Add API config

* Fix mobile nav

* Add migrating a project

* doc link fixes

Co-authored-by: Ben Haynes <ben@rngr.org>
2021-02-05 18:51:54 -05:00

22 lines
1.5 KiB
Markdown

# Error Codes
| Error Code | HTTP Status | Description |
| ---------------------- | ----------- | ------------------------------------------------------------ |
| `FAILED_VALIDATION` | 400 | Validation for this particular item failed |
| `FORBIDDEN` | 403 | You are not allowed to do the current action |
| `INVALID_CREDENTIALS` | 401 | Username / password or access token is wrong |
| `INVALID_IP` | 401 | Your IP address isn't allow-listed to be used with this user |
| `INVALID_OTP` | 401 | Wrong OTP was provided |
| `INVALID_PAYLOAD` | 400 | Provided payload is invalid |
| `INVALID_QUERY` | 400 | The requested query parameters can not be used |
| `REQUESTS_EXCEEDED` | 429 | Hit the rate limit |
| `ROUTE_NOT_FOUND` | 404 | Endpoint does not exist |
| `SERVICE_UNAVAILABLE` | 503 | Could not use external service |
| `UNPROCESSABLE_ENTITY` | 422 | You tried doing something illegal |
::: warning Security
To prevent leaking which items exist, all actions for non-existing items will return a `FORBIDDEN` error.
:::