Http status codes Flashcards

1
Q

100

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
2
Q

200

A

OK

The request was successfully processed.

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

201

A

Created

The request was successful, and a new resource was created.

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

202

A

Accepted.

Indicates that a request has been accepted for processing, but processing has not been completed or may not have started.

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

204

A

No Content.

The request was successful; no content is returned.

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

205

A

Reset Content.

Indicates that the request has been successfully processed and the client should reset the document view.

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

206

A

Partial Content.

The response body contains the requested ranges of data as specified in the Range header of the request.

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

300

A

Multiple Choices.

Indicates that the request has more than one possible response The server should include content in the response that contains a list of resource metadata and URIs from which the user or user agent can choose.

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

301

A

Moved Permanently.

The requested resource has been permanently moved to a new URL.

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

302

A

Found.

The resource has temporarily moved to another URL.

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

304

A

Not Modified.

This response code is sent when the request is a conditional GET or HEAD request with an If-None-Match or an If-Modified-Since header and the condition evaluates to ‘false’. It confirms that the resource cached by the client is still valid and that the server would have sent a 200 OK response with the resource if the condition evaluated to ‘true’.

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

307

A

Temporary Redirect.

The method and the body of the original request are reused to perform the redirected request. In the cases where you want the request method to be changed to GET.

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

308

A

Permanent Redirect.

The request method and the body will not be modified by the client in the redirected request

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

400

A

Bad request.

The server could not process the request due to client-side error.

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

401

A

Unauthorized.

Authentication is required but has failed or not been provided.

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

403

A

Forbidden.

The server understands the request but refuses to authorize it.

17
Q

404

A

Not Found.

The server cannot find the requested resource.

18
Q

405

A

Method Not Allowed.

The HTTP method used is not allowed for the resource.

19
Q

406

A

Not Acceptable.

The server cannot provide a response matching the client’s accept headers.

20
Q

408

A

Request Timeout.

21
Q

409

A

Conflict.

22
Q

413

A

Content Too Large.

22
Q

410

A

Gone.

23
Q

415

A

Unsupported Media Type.

24
Q

418

A

I’m a teapot.

25
Q

422

A

Unprocessable Content.

26
Q

425

A

Too Early.

27
Q

426

A

Upgrade Required

28
Q

429

A

Too Many Requests.

29
Q

500

A

Internal Server Error

The server encountered an unexpected error.

30
Q

501

A

Not Implemented

31
Q

502

A

Bad Gateway

The server received an invalid response from an upstream server.

32
Q

503

A

Service Unavailable

:)

33
Q

504

A

Gateway Timeout

The server did not receive a timely response from an upstream server.

34
Q

Which 30x statuses preserves original method and body?

A

307, 308

35
Q

Which 30x statuses no (or never) guarantees on method preservation?

A

300, 301, 302

36
Q

Which of these statuses (300, 301, 302, 304, 307, 308) impacts for Search engines update their indexes?

A

301, 308

301 and 308: Critical for SEO when permanently moving content. They signal search engines to update the index to the new URL and transfer ranking power.
302 and 307: Treated as temporary; search engines keep the old URL in their index, so use them only for non-permanent changes.
300: Avoid for SEO; it’s ambiguous and may confuse search engines.
304: No impact on ranking; purely for performance optimization.