Status Codes Flashcards
404
404 is an HTTP status code indicating that the requested resource could not be found on the server.
Example - When a user tries to visit a non-existent webpage, they receive a 404 Not Found error.
401
401 is an HTTP status code indicating that the request requires authentication, and the user has not provided valid credentials.
Example - A user attempting to access a private API endpoint without logging in receives a 401 Unauthorized error.
200
200 is an HTTP status code indicating that the request was successful, and the server has returned the requested data.
Example - A successful GET request for a webpage returns a 200 OK status, along with the content of the page.
429
429 is an HTTP status code indicating that the user has sent too many requests in a given amount of time, triggering a rate-limiting response.
Example - An API might return a 429 Too Many Requests error if a user exceeds the allowed number of API calls per minute.