Status Codes Flashcards

1
Q

404

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

401

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

200

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

429

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly