HTTP Responses and status codes Flashcards

(14 cards)

1
Q

What are HTTP response status codes?

A

They are issued by a server in response to a client’s request. The first digit of the status code specifies one of five standard classes of responses. Optional messages and body can be sent along with them.

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

Who maintains the official registry of HTTP status codes?

A

The Internet Assigned Numbers Authority (IANA).

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

How many response classes are there?

A

5.

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

What are the 1xx HTTP Response classes?

A

1xx informational response – the request was received, continuing process

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

What are the 2xx HTTP Response classes?

A

2xx successful – the request was successfully received, understood, and accepted

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

What are the 3xx HTTP Response classes?

A

3xx redirection – further action needs to be taken in order to complete the request

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

What are the 4xx HTTP Response classes?

A

4xx client error – the request contains bad syntax or cannot be fulfilled

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

What are the 5xx HTTP Response classes?

A

5xx server error – the server failed to fulfil an apparently valid request

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

What are the most common 1xx codes?

A

100 Continue
101 Switching protocols
102 Processing (used for long processes to stop client timing out)
103 Early Hints

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

What are the most common 2xx codes?

A

200 OK
201 Created
202 Accepted
203 Non authoritative information (used for transforming proxy e.g. a web accelerator) returning a modified version of the origin’s response
204 No content
205 Reset content
206 Partial content
207 Multi status (multiple separate response codes)
208 Already reported

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

What are the most common 3xx codes?

A

300 Multiple choices
301 Moved permanently (to a new url)
302 Found / moved temporarily
303 See other
304 Not modified
305 Use proxy to access
306 out of use
307 Temporary redirect
308 Permanent redirect

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

What are the most common 4xx codes?

A

400 Bad request
401 Unauthorised
402 Payment required
403 Forbidden
404 Not found
405 Method not allowed
406 Not acceptable
407 Proxy Authentication required
408 Request timeout
409 Conflict
410 Gone
411 Length required
412 Precondition failed
413 Payload too large
421 Misdirected request
422 Unprocessable content
429 Too many requests
451 Unavailable for legal reasons

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

What are the most common 5xx codes?

A

500 Internal server error
501 Not implemented
502 Bad gateway
503 Service unavailable
504 Gateway timeout
505 HTTP version not supported
511 Network authentication required

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