HTTP Methods, Status Codes, and Headers Flashcards
indicates the desired action
Method
Methods are sometimes called
HTTP verbs
used to request a specific resource
GET
GET requests are meant to be
read only
used to submit data to the server
POST
identical response to a GET request. expected but without the response body
HEAD
used for checking validity, recent modification
HEAD
replaces current resoruce
PUT
delete a resource
DELETE
used to establish a connection to the server over a tunnel proxy
CONNECT
used to echo contents of an HTTP request back to the client
TRACE
used to ask the server about its supported methods
OPTIONS
used to apply modification to the data in the specified URL
PATCH
CRUD Operations
CREATE
READ
UPDATE
DELETE
HTTP Methods Characteristics
Safe
idempotent
Cacheable
do not alter the server state
Safe
applied several times without changing the result
Idempotency
TRUE OR FALSE
some safe methods are idempotent
FALSE
Cacheable Methods
HEAD
GET
3-digit code found in the first line of HTTP response messages
Status Code
included next to status code
Reason Phrase or status message
Status Codes Classification
100-199 Informational
200-299 Success
300-399 Redirection
400-499 Client Error
500-599 Server Error
200
OK
201
Created