|
Scénario |
Code d'état HTTP |
| Appel API réussi, accès OK, nombre d'enregistrements 0 | 200 Les métadonnées relatives à la demande sont toujours renvoyées, même s'il n'y a pas de données trouvées, ni d'enregistrements à renvoyer. |
| Appel API réussi, accès OK, nombre d'enregistrements 1+ | 200 Les métadonnées et un ou plusieurs enregistrements sont renvoyés. |
| API Call Missing Credentials / Unauthorized Check to see if your request contains a valid access_token or refresh_token. |
401 |
| API Call Successful, Access Forbidden Permissions are missing, either in the OAuth 2 Scope, or the TrackTik web portal Employee (username and password) |
403 |
| Validation Error / Bad Request Many of our endpoints look for at least one filter to be provided to limit the impact on the back-end data services layer. /reports is one example, that requires at least a date range or position id. |
400 |
| Too many requests. You've sent too many requests in the past minute and need to reduce the number for the next minute to cool things off. The limit is usually in the thousands and therefore generous, but some folks make the error of having too much parallelism or poor error trapping and passing those limits. |
429 |
| Internal Server Error. TrackTik’s system is missing a validation or error trap of its own. |
500 |
Avec 403 Forbidden, vous pouvez vérifier les en-têtes de la réponse pour en savoir davantage. Si la valeur du serveur est « awselb/2.0 », la demande est rejetée par le pare-feu devant l'API et non par l'API elle-même.