05 - HTTP Methods, Status Codes, & Headers Flashcards

(60 cards)

1
Q

indicates the desired action for the specified resource

A

method

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

methods are sometimes called ____

A

http verbs

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

POST is designed to cover 4 functions

A
  • annotation of existing resources
  • posting a message
  • providing a block of data
  • extending a database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

identical to a response to a GET request but without the response body

A

HEAD

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

used for checking link validity, recent modification, or to find out more about a resource

A

HEAD

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

replaces current resource in the specified path with the data in the request body

A

PUT

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

deletes the resource in the specified path

A

DELETE

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

used to establish a connection to the server over a tunnel proxy

A

CONNECT

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

used to echo the contents of an HTTP request back to the client

A

TRACE

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

useful for checking how the request is modified by proxies

A

TRACE

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

used to ask the server about its supported methods

A

OPTIONS

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

used to apply partial modification to the data in the specified URL

A

PATCH

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

what are the CRUD representation of the HTTP methods

A

create: put
read: get
update: post/patch
delete: delete

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

characteristics of http methods (3)

A

safe
idempotent
cacheable

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

do not alter the state of the server; read only

A

safe methods

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

exhibit idempotency

A

idempotent methods

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

property of certain operations such that they can be applied several times without changing the result of the initial application

A

idempotency

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

all safe methods are also _____

A

idempotent

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

if the method used in the request is cacheable (GET) then the response is considered cacheable (HEAD)

A

cacheable methods

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

5 groups of status codes

A

1xx: informational
2xx: success
3xx: redirection
4xx: client error
5xx: server error

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

generic success message

A

200 OK

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

req was a success and a new resource was created as a result

A

201 Created

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

indicate that further action needs to be taken

A

3xx

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

url requested refers to multiple resources

A

300 Multiple Choices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
resource has been moved to a different URL
301 Moved Permanently
26
browsers redirected to the temporary URL but crawlers don't update their databases
302 Found
27
resource hasn't been modified so there's no need to retransmit the data
304 Not Modified
28
client sent a request message with invalid syntax
400 Bad Request
29
request was not acted upon because it lacks valid authentication credentials
401 Unauthorized
30
server understood the request but will not authorize it
403 Forbidden
31
no resource found in the specified URL
404 Not Found
32
method used in the request isn't supported for the specified resource
405 Method Not Allowed
33
access to the target resource is no longer available
410 Gone
34
client sent an entity body larger than the server can or wants to process
413 Request Entity Too Large
35
client sent a request with a URL longer than the server can or wants to process
414 Request URI too long
36
content type of the request payload is not supported by the server
415 Unsupported Media Type
37
common causes of server side errors (3)
server limitations error in server components proxy errors
38
generic server error message
500 Internal Error
39
server does not support the functionality to fulfill the request
501 Not Implemented
40
server isn't ready to handle the request usually due to server overload
503 Service Unavailable
41
server couldn't get a response in time from the next entity
504 Gateway Timeout
42
server doesn't support the HTTP version used in the request message
505 HTTP Version Not Supported
43
client should continue with the request or ignore the response if it's already finished
100 Continue
44
server is switching to the protocol requested by the client
101 Switching Protocols
45
allow the client and server to pass additional information
headers
46
4 types of headers
general request response entity
47
contain general information that does not apply to the contents of the message body
general headers
48
may contain info about the resource requested or the client itself; only used in request msgs
request headers
49
client requests a new copy of the resource if it has been modified since the specified date
if-modified-since
50
details about the browser, rendering engine, os, architecture
user-agent
51
cookies set by the server
cookie
52
used to give more detailed information about the response
response headers
53
how much time the response has been in a proxy cache
age
54
indicates the redirection url
location
55
details about the server's software
server
56
describe the content of the message body
entity header
57
entity headers can contain information about the payload such as (6)
content length language encoding location type date of last modification
58
MIME
multipurpose internet mail extension
59
help the receiving entity decide what to do with the data
MIME types
60
MIME Types: text/css text/html application/zip application/powerpoint application/pdf
Purpose: for design/layout render the doc as HTML open a download prompt display as a document display as a document