Network_1 Flashcards
(5 cards)
What means idempotency of HTTP methods and requests
a single request has the same effect on the server as making several identical requests
According to the REST API guidelines which HTTP methods should be used for resource updates
PUT & PATCH
Which ranges of HTTP status codes represent redirections
✅ 300–399
300 Multiple Choices
The request has more than one possible response (rarely used).
301 Moved Permanently
The resource has been permanently moved to a new URL.
302 Found (Previously “Moved Temporarily”)
Temporary redirect; the client should use the original URL for future requests.
303 See Other
Redirects after a POST to a GET (commonly used after form submissions).
304 Not Modified
Used for caching—tells the client the cached version is still valid.
307 Temporary Redirect
Like 302, but keeps the HTTP method (e.g., POST remains POST).
308 Permanent Redirect
Like 301, but also preserves the HTTP method.
❌ Other ranges:
100–199: Informational
200–299: Success
400–499: Client errors
500–599: Server errors
Which range of HTTP status codes represent success?
1xx
2xx
3xx
4xx
5xx
✅ 2xx
200 OK – Standard success response.
201 Created – A new resource has been created.
204 No Content – Success, but no content to return.
🚫 Other Ranges:
1xx – Informational (e.g., 100 Continue)
3xx – Redirection (e.g., 301 Moved Permanently)
4xx – Client errors (e.g., 404 Not Found)
5xx – Server errors (e.g., 500 Internal Server Error)
Which HTTP request corresponds to R(READ) from the standard CRUD methods
PUT
HEAD
OPTIONS
GET
✅ GET