⚡
Quick TrainerHTTP Methods & REST Conventions
Learn what each HTTP method, status code, and REST principle means in web development.
Code31 items3 levelsDifficulty 2/5
Free · no signup · works on any device
Levels
Start easy — harder levels unlock as you improve, or jump ahead anytime.
1
Core Methods
7 items
2
REST Conventions
10 items
3
Status Codes & Advanced
14 items
All 31 cards
Which HTTP method retrieves a resource without modifying it?
GET
Which HTTP method creates a new resource (often with a server-assigned ID)?
POST
Which HTTP method replaces a resource entirely?
PUT
Which HTTP method deletes a resource?
DELETE
Which HTTP method applies a partial update to a resource?
PATCH
Which HTTP method is like GET but returns only headers, no body?
HEAD
Which HTTP method describes the communication options for a resource (used in CORS preflight)?
OPTIONS
In CRUD terms, which HTTP method maps to 'Read'?
GET
In CRUD terms, which HTTP method maps to 'Create'?
POST
An HTTP method that produces the same result no matter how many times it's repeated is called what?
idempotent
An HTTP method with no side effects that only reads data is called what?
safe
Is GET idempotent? (yes/no)
yes
Is POST idempotent? (yes/no)
no
In REST, a noun-based path like /users/42 represents what?
a resource
What does REST stand for?
Representational State Transfer
Which RESTful URL style is preferred: verbs or nouns in the path?
nouns
What does API stand for?
Application Programming Interface
What status code means 'OK / success'?
200
What status code is returned for a successful resource creation?
201
What status code means the resource was not found?
404
What status code means 'Bad Request'?
400
What status code means the user is not authenticated?
401
What status code means the user is authenticated but not permitted?
403
What status code indicates a generic server error?
500
What status code is commonly returned for a successful DELETE with no body?
204
What range of status codes indicates client errors?
4xx
What range of status codes indicates server errors?
5xx
REST APIs ideally store no client session state on the server — what is this property called?
stateless
Which header tells the server the format of the request body (e.g. application/json)?
Content-Type
Which header lets the client say which response formats it accepts?
Accept
What status code means a redirect to a permanently moved resource?
301



