HTTP Flashcards

(62 cards)

1
Q

What does the status code 100 signify?

A

Continue

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

What is indicated by the status code 101?

A

Switching Protocols

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

What does the status code 200 represent?

A

OK

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

What does the status code 201 indicate?

A

Created

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

What is the meaning of the status code 202?

A

Accepted

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

What does the status code 204 signify?

A

No Content

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

What does the status code 301 indicate?

A

Moved Permanently

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

What is represented by the status code 302?

A

Found

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

What does the status code 304 signify?

A

Not Modified

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

What does the status code 400 indicate?

A

Bad Request

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

What is the meaning of the status code 401?

A

Unauthorized

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

What does the status code 403 signify?

A

Forbidden

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

What does the status code 404 indicate?

A

Not Found

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

What is represented by the status code 405?

A

Method Not Allowed

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

What does the status code 409 signify?

A

Conflict

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

What does the status code 429 indicate?

A

Too Many Requests

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

What is the meaning of the status code 500?

A

Internal Server Error

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

What does the status code 502 signify?

A

Bad Gateway

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

What does the status code 503 indicate?

A

Service Unavailable

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

What is represented by the status code 504?

A

Gateway Timeout

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

What does the status code 308 represent?

A

Permanent Redirect

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

What does the status code 410 represent?

A

Gone

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

What does the status code 412 represent?

A

Precondition Failed

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

What does the status code 413 represent?

A

Payload Too Large

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What does the status code 414 represent?
URI Too Long
26
What does the status code 415 represent?
Unsupported Media Type
27
What does the status code 418 represent?
I'm a Teapot
28
What does the status code 422 represent?
Unprocessable Entity
29
What does the status code 426 represent?
Upgrade Required
30
What does the status code 451 represent?
Unavailable For Legal Reasons
31
GET
Retrieve data from a server. Used for fetching web pages, API data, images, etc. Should not modify server state.
32
POST
Send data to a server to create or process resources. Used for form submissions, file uploads, creating new records.
33
PUT
Update or replace an entire resource on the server. Used for updating existing records with complete data.
34
DELETE
Remove a resource from the server. Used for deleting records or files.
35
PATCH
Partially update a resource on the server. Used for updating specific fields of existing records.
36
HEAD
Same as GET but only returns headers, no body content. Used for checking if a resource exists or getting metadata.
37
OPTIONS
Request information about available methods for a resource. Used for CORS preflight requests and API discovery.
38
CONNECT
Establish a tunnel to a server. Primarily used for HTTPS connections through proxies.
39
TRACE
Perform a message loop-back test. Used for debugging (rarely used in practice due to security concerns).
40
Accept
Request - Specifies which content types the client can handle
41
Authorization
Request - Contains credentials for authenticating with the server
42
Content-Type
Request - Indicates the media type of the request body
43
User-Agent
Request - Identifies the client application operating system and version making the request
44
Cookie
Request - Sends stored cookies back to the server for session management and tracking
45
Host
Request - Specifies the domain name and port of the server (required in HTTP/1.1)
46
Referer
Request - Indicates the URL of the page that linked to the current request
47
Accept-Language
Request - Specifies preferred languages for the response content
48
Accept-Encoding
Request - Lists compression methods the client can handle
49
Connection
Request - Controls whether the network connection stays open after the transaction
50
Content-Length
Request - Indicates the size of the request body in bytes
51
Cache-Control
Request - Directives for caching mechanisms in both requests and responses
52
Content-Type
Response - Specifies the media type of the response body
53
Set-Cookie
Response - Sends cookies to be stored by the client
54
Content-Length
Response - Indicates the size of the response body in bytes
55
Cache-Control
Response - Directives for how responses should be cached
56
Location
Response - Used with redirect status codes to specify the new URL
57
Server
Response - Identifies the server software handling the request
58
Access-Control-Allow-Origin
Response - CORS header specifying which origins can access the resource
59
Expires
Response - Specifies when the response expires for caching purposes
60
Last-Modified
Response - Indicates when the resource was last modified
61
ETag
Response - Provides a unique identifier for a specific version of a resource for caching
62
For CORS purposes, what constitutes a different origin?
Combination of: * protocol (http vs https) * port (80 vs 8080) * domain (www.domain.com vs api.domain.com)