Errors
When using the Tutorial Documentation API, you may encounter various errors. This section provides information on common errors and how to handle them.
API requests made without authentication will fail with the status code 401: Unauthorized. All API requests must be made over HTTPS.
If you encounter a 400 Bad Request error, it means that the request was invalid. Check the request parameters and try again.
For 500 Internal Server Error, it indicates a problem with the server. Please try again later or contact support if the issue persists.
Common Error Codes
- 400 Bad Request: The request was invalid or cannot be otherwise served.
- 401 Unauthorized: Authentication credentials were missing or incorrect.
- 403 Forbidden: The request is understood, but it has been refused or access is not allowed.
- 404 Not Found: The URI requested is invalid or the resource requested does not exist.
- 500 Internal Server Error: An error occurred on the server.
Sample Error Response
400 Bad Request
{ "result": "error", "message": "Invalid request parameters." }
401 Unauthorized
{ "result": "error", "message": "Unauthorized. Please provide a valid API key." }
500 Internal Server Error
{ "result": "error", "message": "Internal server error. Please try again later." }