Codici di errore
La nostra API restituirà codici di risposta HTTP semanticamente validi in base al successo della tua richiesta. La tabella seguente può essere utilizzata come riferimento per i codici di risposta che restituirà.
Ogni errore è rappresentato con un codice di stato HTTP, nonché un codice e un messaggio di risposta all'interno del corpo della risposta effettivo.
Codici di stato HTTP
Se un codice di stato HTTP ha più motivi, utilizza il codice di errore restituito dall'API.
HTTP | Significato |
---|---|
200 | Success |
400 |
|
401 | You must be authenticated to perform this action |
403 | Invalid API key |
404 | A requested object was not found |
408 | Your request timed out |
415 | Invalid format |
500 | There was internal server error while processing your request |
503 |
|
Codici di errore
La tabella seguente descrive i codici che possono apparire quando si lavora con l'API.
The YouRepo API attempts to return appropriate error codes for every request.
C'è un'eccezione a queste regole:
- I formati non validi restituiranno un HTTP 415 con un messaggio di errore come corpo della risposta.
Codice | Significato |
---|---|
0 |
|
1 | Endpoint not valid |
2 | Missing or invalid argument |
3 | Endpoint resource not valid |
4 | You must be authenticated to perform this action |
5 | Invalid API key |
7 | You cannot access this resource using %(request_method)s |
8 | A requested object was not found |
9 | You cannot access this resource using your %(access_type)s API key |
10 | This operation is not supported |
11 | Your API key is not valid on this domain |
12 | This application does not have enough privileges to access this resource |
13 | You have exceeded the rate limit for this resource |
14 | You have exceeded the rate limit for your account |
15 | There was internal server error while processing your request |
16 | Your request timed out |
17 | The authenticated user does not have access to this feature |
18 | The authorization signature you passed was not valid |
19 | You must re-submit this request with a response to the captcha challenge |
20 | The API is currently undergoing maintenance, and your changes were saved, but will not be visible yet. |
21 | The API is currently undergoing maintenance, and your changes could not be saved. |
22 | You do not have the appropriate permissions to access this resource |
24 | You have exceeded the maximum number of creations for this resource |