Bird
0
0

What HTTP status code should a server return after successfully handling an OPTIONS request?

medium📝 Predict Output Q4 of 15
Rest API - HTTP Methods
What HTTP status code should a server return after successfully handling an OPTIONS request?
A204 No Content
B201 Created
C200 OK
D404 Not Found
Step-by-Step Solution
Solution:
  1. Step 1: Understand OPTIONS response

    OPTIONS requests typically return 200 OK with allowed methods in headers.
  2. Step 2: Exclude other codes

    201 is for resource creation, 204 means no content but OPTIONS usually returns headers, 404 means not found.
  3. Final Answer:

    200 OK -> Option C
  4. Quick Check:

    OPTIONS success returns 200 OK [OK]
Quick Trick: OPTIONS success returns 200 OK status [OK]
Common Mistakes:
  • Choosing 204 No Content which is less common for OPTIONS
  • Confusing with 201 Created
  • Assuming 404 for unsupported endpoints

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes