Bird
Raised Fist0

Which of the following is a REQUIRED field in the Problem Details JSON object according to RFC 7807?

easy📝 Syntax Q12 of Q15
Rest API - Error Handling
Which of the following is a REQUIRED field in the Problem Details JSON object according to RFC 7807?
Atype
Bstatus
Cdetail
Dinstance
Step-by-Step Solution
Solution:
  1. Step 1: Recall required fields in RFC 7807

    The RFC requires the "type" field to identify the error type URI.
  2. Step 2: Check other fields

    Fields like "status", "detail", and "instance" are optional but recommended.
  3. Final Answer:

    type -> Option A
  4. Quick Check:

    Required field = type [OK]
Quick Trick: Only 'type' is mandatory in Problem Details [OK]
Common Mistakes:
MISTAKES
  • Assuming 'status' is required
  • Confusing 'detail' as mandatory
  • Thinking 'instance' is always needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes