05 - HTTP Methods, Status Codes, & Headers Flashcards
(60 cards)
indicates the desired action for the specified resource
method
methods are sometimes called ____
http verbs
POST is designed to cover 4 functions
- annotation of existing resources
- posting a message
- providing a block of data
- extending a database
identical to a response to a GET request but without the response body
HEAD
used for checking link validity, recent modification, or to find out more about a resource
HEAD
replaces current resource in the specified path with the data in the request body
PUT
deletes the resource in the specified path
DELETE
used to establish a connection to the server over a tunnel proxy
CONNECT
used to echo the contents of an HTTP request back to the client
TRACE
useful for checking how the request is modified by proxies
TRACE
used to ask the server about its supported methods
OPTIONS
used to apply partial modification to the data in the specified URL
PATCH
what are the CRUD representation of the HTTP methods
create: put
read: get
update: post/patch
delete: delete
characteristics of http methods (3)
safe
idempotent
cacheable
do not alter the state of the server; read only
safe methods
exhibit idempotency
idempotent methods
property of certain operations such that they can be applied several times without changing the result of the initial application
idempotency
all safe methods are also _____
idempotent
if the method used in the request is cacheable (GET) then the response is considered cacheable (HEAD)
cacheable methods
5 groups of status codes
1xx: informational
2xx: success
3xx: redirection
4xx: client error
5xx: server error
generic success message
200 OK
req was a success and a new resource was created as a result
201 Created
indicate that further action needs to be taken
3xx
url requested refers to multiple resources
300 Multiple Choices