HTTP Response Codes Flashcards

1
Q

How many classes of HTTP response codes are there?

A

Five

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

What defines the HTTP response code?

A

The first digit of the code.

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

What are the 5 HTTP response codes by class only?

A
1xx (100s) - informational response 
2xx (200s) - successful
3xx (300s) - redirection
4xx (400s) - client error
5xx (500s) - server error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a 100 code?

A

Continue.

The server has received the request headers and the client should proceed to send the request body.

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

What is a 101 code?

A

Switching protocols.

The client has asked the server to switch protocols, and the server agrees.

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

What is a 102 code?

A

Processing.
The server has received and is processing the request, but no response is available. This prevents the client from timing out.

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

What is a 103 http code?

A

Early hints.
Server tells the client that the server is likely to send a final response with the header fields included in the informational response.

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

What is a 200 http code?

A

Success.
Response from server is OK.
Standard response for successful http request.

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

What is a 201 http code?

A

Created.

The request has been fulfilled, resulting in the creation of a new resource.

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

What is a 202 http response code?

A

Accepted.

The request has been accepted for processing, but has not been completed. The request may or may not be acted on.

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

What is a 203 http code?

A

Non-authoritative information.

The server is a proxy that received the 200 OK, and returns a modified version of the original response.

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

What is a 204 http code?

A

No content.

The request was processed, but the server is not returning any content.

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

What is a 205 http code?

A

Reset content.
Request from the server to the client to reset the document from which the original request was sent.
An example is a form filled out by the client and the server is asking the browser to clear the form.

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

What is a 206 http code?

A

Partial content.
The server is transferring only part of the resource requested by the client due to a range header sent by the client.
The range header is used to enable resuming of interrupted downloads or split a download into multiple simultaneous streams.

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

What is a http 207 code?

A

Multi- status.
Conveys information about multiple resources in situations where multiple codes might be appropriate. Default message is a text/XML response.

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

What is a http 208 code?

A

Already reported.
Used inside a DAV: allows a client to tell the server that the same resource (with the same binding) was mentioned earlier.
DAV OR WEBDAV: WebDAV protocol provides a framework for users to create, change and move documents on aserver.

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

What is a http 226 code?

A

IM used.
The extension allows a HTTP server to send diffs (changes) of resources to clients. Clients request this because part of resource is already cached.

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

What is a http 300 code?

A

Multiple choices.

The request has more than one possible responses. The client must choose them.

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

What is a http 301 code?

A

Moved permanently.

This and all future requests should be directed to the givenURI.

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

What is a http 302 code?

A

Found

A common way of performing URL redirection.

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

What is a http 303 code?

A

See other

Status response code informing you that the URL you’re trying to access is redirecting you to another URL.

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

What is a http 304 code?

A

Not modified
Client redirection response code indicates that there is no need to retransmit the requested resources. It is an implicit redirection to a cached resource.

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

What is a http 305 code?

A

Use proxy
The requested resource is available only through a proxy, the address for which is provided in the response. For security reasons, many HTTP clients (such asMozilla FirefoxandInternet Explorer) do not obey this status code.

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

What is a http 306 code?

A

Switch proxy

No longer used. Originally meant “Subsequent requests should use the specified proxy.”

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

What is a http 307 code?

A

Temporary redirect
Redirect status response code indicates that the resource requested has been temporarily moved to the URL given by theLocationheaders.

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

What is a 308 code?

A

Permanent redirect
Redirect status response code indicates that the resource requested has been definitively moved to the URL given by theLocationheaders.

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

What is a http 400 code?

A

Bad request
The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request message framing, or deceptive request routing).

28
Q

What is an http 401 code?

A

Unauthorized
Similar to403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.

29
Q

What is an http 402 code?

A

Payment required
Reserved for future use.
The intention was that this code might be used as part of some form ofdigital cashormicropaymentscheme, but that has not yet happened, and this code is not widely used.

30
Q

What is an http 403 code?

A

Forbidden
The request contained valid data and was understood by the server, but the server is refusing action. This may be due to the user not having the necessary permissions for a resource or needing an account of some sort, or attempting a prohibited action (e.g. creating a duplicate record where only one is allowed).

31
Q

What is an http 404 code?

A

Not found
The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.

32
Q

What is an http 405 code?

A

Method not allowed
A request method is not supported for the requested resource; for example, a GET request on a form that requires data to be presented viaPOST, or a PUT request on a read-only resource.

33
Q

What is an http 406 code?

A

Not acceptable
Client error response code indicates that the server cannot produce a response matching the list of acceptable values defined in the request’s proactivecontent negotiationheaders, and that the server is unwilling to supply a default representation.

34
Q

What is an http 407 code?

A

Proxy authentication required
The server is not reporting a direct authentication issue but is instead reporting that the client needs to authenticate with a proxy server.

35
Q

What is an http 408 code?

A

Request timeout

The server would like to shut down this unused connection

36
Q

What is an http 409 code?

A

Conflict
The request could not be completed due to a conflict with the current state of the target resource. This code is used in situations where the user might be able to resolve the conflict and resubmit the request.

37
Q

What is an http 410 code?

A

Gone
Client error response code indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent

38
Q

What is an http 411 code?

A

Length Required
Client error response code indicates that the server refuses to accept the request without a defined Content-Length header.

39
Q

What is an http 412 code?

A

Precondition Failed

Client error response code indicates that access to the target resource has been denied.

40
Q

What is an http 413 code?

A

Payload too large

The request was larger than the server can handle, either due to physical constraints or settings.

41
Q

What is an http 414 code?

A

Request URI too long

The URI requested by the client is longer than the server is willing to interpret.

42
Q

What is an http 415 code?

A

Unsupported Media Type

The server refuses to accept the request because the payload format is in an unsupported format.

43
Q

What is an http 416 code?

A

Range Not Satisfiable
A server cannot serve the requested ranges. The client has asked for a portion of the file but that the server cannot supply that portion.

44
Q

What is an http 417 code?

A

Expectation Failed

The client’s Expect header cannot be met so the server rejects the request.

45
Q

What is an http 418 code?

A

I’m a teapot
I’m a teapot client error response code indicates that the server refuses to brew coffee because it is, permanently, a teapot.

46
Q

What is an http 421 code?

A

Misdirected Request

The request was directed at a server that is not able to produce a response, such as connection refused.

47
Q

What is an http 422 code?

A

Unproccesable Entity

The request was well-formed but was unable to be followed due to semantic errors.

48
Q

What is an http 423 code?

A

Locked

The resource that is being accessed is locked

49
Q

What is an http 424 code?

A

Failed Dependency

The request failed because it depended on another request and that request failed.

50
Q

What is an http 425 code?

A

Too Early

Indicates that the server is unwilling to risk processing a request that might be replayed.

51
Q

What is an http 426 coce?

A

Upgrade Required

The client should switch to a different protocol such as TLS/1.3, given in the Upgrade header field.

52
Q

What is an http 428 code?

A

Precondition required
The origin server requires the request to be conditional. Intended to prevent the ‘lost update’ problem, where a client GETs a resource’s state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.

53
Q

What is an http 429 code?

A

Too many requests

The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.

54
Q

What is an http 431 code?

A

Request Header Fields Too Large
The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.

55
Q

What is an http 451 code?

A

Unavailable for Legal Reasons
A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource. The code 451 was chosen as a reference to the novel Fahrenheit 451.

56
Q

What is an http 500 code?

A

Internal Server Error

A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.

57
Q

What is an http 501 code?

A

Not Implemented
The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability (e.g., a new feature of a web-service API).

58
Q

What is an http 502 code?

A

Bad Gateway

The server was acting as a gateway or proxy and received an invalid response from the upstream server.

59
Q

What is an http 503 code?

A

Service Unavailable
The server cannot handle the request (because it is overloaded or down for maintenance). Generally, this is a temporary state.

60
Q

What is an http 504 code?

A

Gateway Timeout

The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

61
Q

What is an http 505 code?

A

HTTP Version Not Supported

The server does not support the HTTP protocol version used in the request.

62
Q

What is an http 506 code?

A

Variant Also Negotiates

Transparent content negotiation for the request results in a circular reference.

63
Q

What is an http 507 code?

A

Insufficient Storage

The server is unable to store the representation needed to complete the request.

64
Q

What is an http 508 code?

A

Loop Detected

The server detected an infinite loop while processing the request (sent instead of 208 Already Reported).

65
Q

What is an http 510 code?

A

Not Extended

Further extensions to the request are required for the server to fulfil it.

66
Q

What is an http 511 code?

A

Network Authentication Required
The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network (e.g., “captive portals” used to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).