HTTP Status Codes and REST Basics
Web/API interview cards — key HTTP methods, status code families, and REST constraints.
12 cards· by GuruOwl
Make a deck like this from your own PDF — free.
Try it- 01What does HTTP 200 mean?OK — the request succeeded.2xx
- 02What does HTTP 201 mean?Created — a new resource was successfully created (often after POST).2xx
- 03What does HTTP 204 mean?No Content — success with empty response body (common after DELETE).2xx
- 04What does HTTP 301 mean vs 302?301 Permanent Redirect; 302 Found/temporary redirect. 301 signals the resource moved permanently for caching/SEO.3xx
- 05What does HTTP 400 mean?Bad Request — the client sent an invalid request.4xx
- 06What does HTTP 401 mean vs 403?401 Unauthorized (unauthenticated / bad credentials); 403 Forbidden (authenticated but not allowed).4xx
- 07What does HTTP 404 mean?Not Found — no resource at the URI (or not disclosed).4xx
- 08What does HTTP 409 mean?Conflict — request conflicts with current resource state (e.g., version conflict).4xx
- 09What does HTTP 500 mean?Internal Server Error — unexpected server-side failure.5xx
- 10Is GET supposed to be safe and idempotent?Yes — safe (no state change) and idempotent (same effect when repeated).methods
- 11Is PUT idempotent? Is POST?PUT is idempotent (replace resource); POST is generally not (each call may create/side-effect again).methods
- 12What does REST emphasize about resources and representations?Resources identified by URIs; manipulated via standard methods; representations (JSON/HTML) transferred over a uniform interface; often stateless servers.rest