Bird
0
0

Given this API error response, what is the human-readable message?

medium📝 Predict Output Q5 of 15
Rest API - Error Handling

Given this API error response, what is the human-readable message?

{"error": "Unauthorized", "message": "Token expired", "code": 401}
AToken expired
BUnauthorized: Token expired
C401 Unauthorized
DError code 401
Step-by-Step Solution
Solution:
  1. Step 1: Identify main error and message fields

    The "error" is "Unauthorized" and the "message" explains "Token expired".
  2. Step 2: Combine both fields for full human-readable message

    Joining error and message gives a clear explanation.
  3. Final Answer:

    Unauthorized: Token expired -> Option B
  4. Quick Check:

    Error + message = Full explanation [OK]
Quick Trick: Join error and message for clarity [OK]
Common Mistakes:
  • Using only one field
  • Confusing code with message
  • Ignoring message details

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes