Error codes
Tento obsah zatím není dostupný ve vašem jazyce.
Where do i find an error code?
Section titled “Where do i find an error code?”You will find the error code in either the messages or errors group returned in every requested:
{ "success": false, "errors": [ { "id": "78d6bd7b-adda-4ce3-abf7-b0ed6e6bcf1e", "code": 123456, "message": "Example error" } ], "messages": []}
{ "success": true, "errors": [], "messages": [ { "id": "55841bba-37fe-432e-aab3-ba6b4e591596", "code": 123456, "message": "Example message" } ]}
Error code structure
Section titled “Error code structure”Below you will find the error codes that will be returned in every message or error.
Specifies where the error comes from:
0 - API Server
Specifies how the error affects you:
- 0 – Endpoint specific
- 1 – Global
Specifies the error type:
- 0 – Info
- 1 – Success
- 2 – Warning
- 3 – Error
- 4 – Critical Error
Specifies the actual error:
- 00 – Internal error
- 01 – Missing parameter
- 02 – Invalid parameter
- 03 – Conflict
- 04 – Note
- 05 – Success Info
- 06 – Missing permission
- 07 – Not found
- 08 – Fallback
- 09 – External (e.g. when interacting with 3rd party api’s like the discord api)
- 10 – See message
- 11 – Premium required
- 12 – Limit
- 13 – Rate Limit
- 14 – Deprecated