Bird
0
0

Which of the following is the correct way to represent partial success in a REST API response?

easy📝 Syntax Q12 of 15
Rest API - Batch and Bulk Operations
Which of the following is the correct way to represent partial success in a REST API response?
AHTTP 404 with error message
BHTTP 200 with empty body
CHTTP 207 with JSON detailing success and failure
DHTTP 500 with stack trace
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct HTTP status for partial success

    HTTP 207 Multi-Status is designed to show multiple results in one response.
  2. Step 2: Confirm response format

    Using JSON to detail which parts succeeded or failed is the standard approach.
  3. Final Answer:

    HTTP 207 with JSON detailing success and failure -> Option C
  4. Quick Check:

    207 + JSON = Partial success response [OK]
Quick Trick: Use 207 with JSON for partial success, not 200 or errors [OK]
Common Mistakes:
MISTAKES
  • Using 200 OK without details
  • Returning 404 for partial success
  • Sending server error 500 instead of partial status

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes