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
300
Multiple Choices
301
Moved Permanently
302
Found
304
Not Modified
400
Bad request
401
Unauthorized
403
Forbidden
404
Not Found
405
Method Not Allowed
410
Gone
413
Request Entity Too Large
414
Request URI Too Long
415
Unsupported Media Type
500
Internal Error
501
Not Implemented
503
Service Unavailable
504
Gateway Timeout
505
HTTP Version Not Supported
100
Continue
101
Switching Protocols
allows the client and server to pass additional information in request and response messages
Headers
Types of Headers
General Headers
Request Headers
Response Heaters
Entity Headers
can be used for both request and response
not necessarily describing message body
General Headers
only used in request messages
Request Headers
used to give more details about the response
Response Headers
details about the Server’s software
Server
describe the content of the message body
Entity Headers
indicated by Values of content-type header
MIME Type
MIME
Multipurpose Internet Mail Extension
HTTP is meant to be
extensible
indicates the desired action for the specified resource
Method
Methods are sometimes called what
HTTP Verbs
used to get a specific resource from the server
GET
GET requests are meant to be
read only
used to submit data to a server
POST
used for checking link validity, recent motivation or just to find out more about the resource without actually fetching it
HEAD
replaces the current resource in the specified path with the data in the request body
PUT
deletes the resource in the specified path
DELETE
used by the client 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
used to ask the server about the supported methods
OPTIONS
Used to apply partial modification to the data in the specified url
PATCH
CRUD operations
CREATE
READ
UPDATE
DELETE
Characteristics of HTTP Methods
Safe
Idempotent
Cacheable
do not alter the stars if the server
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
Idempotency
Only Cacheable Methods
HEAD
GET
3-digit code found in the first line of HTTP response Messages
HTTP Status Codes
includes next to status code
reason Phrase
status message
status codes groups
100-199 - Informational
200-299 - Success
300-399 - Redirection
400-499 - Client Error
500-599 - Server Error
200
OK
201
Created
300
Multiple Choices
301
Moved Permanently
302
Found
304
Not Modified