HTTP Codes Flashcards

HTTP Response Status Codes (21 cards)

1
Q

100-199

A

Informational

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

200-299

A

Successful

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

300-399

A

Redirection

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

400-499

A

Client error

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

500-599

A

Server error

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

200

A

OK

Everything worked as expected.

Seen on successful GET, POST, PUT, DELETE requests.

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

201

A

Created

The server created a resource (commonly after POST).

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

204

A

No Content

The request succeeded, but no response body is returned (often after DELETE or a successful update with no content to return).

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

301

A

Moved Permanently

The URL of the requested resource has been changed permanently. The new URL is given in the response.

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

302

A

Found

Temporary redirect; often shows up when testing login flows.

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

304

A

Not Modified

Browser caching: tells the client to use its cached version.

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

401

A

Unauthorized

Although the HTTP standard specifies “unauthorized”, semantically this response means “unauthenticated”. That is, the client must authenticate itself to get the requested response.

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

400

A

Bad Request

The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

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

403

A

Forbidden

The user is authenticated but not allowed to access the resource.

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

409

A

Conflict

Happens when a request conflicts with the current state of the server (e.g., duplicate unique fields)

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

404

A

Not Found

The server cannot find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client. This response code is probably the most well known due to its frequent occurrence on the web.

15
Q

422

A

Unprocessable Entity

Often from validation failures, especially in RESTful APIs.

16
Q

500

A

Internal Server Error

The server has encountered a situation it does not know how to handle. This error is generic, indicating that the server cannot find a more appropriate 5XX status code to respond with.

17
Q

502

A

Bad Gateway

This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.

18
Q

503

A

Service Unavailable

The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response, a user-friendly page explaining the problem should be sent. These temporary condition responses should usually not be cached.

19
Q

504

A

Gateway Timeout

This error response is given when the server is acting as a gateway and cannot get a response in time.