Bird
0
0

In a REST API, what does an HTTP status code 200 OK signify when returned after a GET request?

easy📝 Conceptual Q1 of 15
Rest API - HTTP Status Codes
In a REST API, what does an HTTP status code 200 OK signify when returned after a GET request?
AThe request was malformed or invalid
BA new resource has been created successfully
CThe request was successful and the server is returning the requested data
DThe requested resource was not found
Step-by-Step Solution
Solution:
  1. Step 1: Identify the HTTP method

    GET requests retrieve data from the server.
  2. Step 2: Understand status code 200

    200 OK means the request succeeded and the server is returning the requested resource.
  3. Final Answer:

    The request was successful and the server is returning the requested data -> Option C
  4. Quick Check:

    200 OK means success with data returned [OK]
Quick Trick: 200 OK means successful request with response data [OK]
Common Mistakes:
MISTAKES
  • Confusing 200 OK with resource creation status
  • Assuming 200 OK means resource not found
  • Mixing 200 OK with client error codes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes