Bird
0
0

Which HTTP status code is typically returned immediately by a REST API to indicate a long-running operation has started asynchronously?

easy📝 Syntax Q12 of 15
Rest API - Advanced Patterns
Which HTTP status code is typically returned immediately by a REST API to indicate a long-running operation has started asynchronously?
A200 OK
B404 Not Found
C202 Accepted
D500 Internal Server Error
Step-by-Step Solution
Solution:
  1. Step 1: Recall HTTP status codes for async start

    202 Accepted means the request is accepted but processing is not complete yet.
  2. Step 2: Compare with other codes

    200 OK means completed, 404 means missing resource, 500 means server error.
  3. Final Answer:

    202 Accepted -> Option C
  4. Quick Check:

    Async start = 202 Accepted [OK]
Quick Trick: 202 means accepted but not done yet [OK]
Common Mistakes:
MISTAKES
  • Using 200 OK for async start
  • Confusing 404 with async status
  • Assuming 500 means task started

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes