Test your understanding of HTTP and REST basics with this quiz covering status codes, idempotency, and pagination concepts. Perfect for beginners seeking to assess or reinforce their foundational knowledge in web APIs.
Which HTTP status code indicates that a request was successful and that the server returned the requested data, such as when accessing a resource GET /articles/1?
When a new resource is successfully created through a POST request, which HTTP status code should typically be returned?
Which HTTP method is considered idempotent, meaning that making the same request multiple times yields the same result on the server?
Which status code should a server respond with if a requested resource, like /user/9999, does not exist?
Which HTTP method is considered 'safe' because it does not modify resources, such as retrieving user information with GET /users/123?
When retrieving a large list of results, which technique helps to return only a subset of data, often using parameters like limit and offset?
After a successful DELETE API call that removes a resource, which status code is commonly returned to indicate success with no response body?
If sending the same DELETE request multiple times results in the same state, what property does the DELETE method exhibit?
Which HTTP status code is used to inform the client that a resource has been temporarily moved to another URL (e.g., /old-page to /new-page)?
When implementing pagination, which two query parameters are typically used together to control the number and range of results returned by GET /products?