Bird
0
0

Which of the following is the correct JSON field name for the human-readable error message in Problem Details?

easy📝 Syntax Q3 of 15
Spring Boot - Exception Handling
Which of the following is the correct JSON field name for the human-readable error message in Problem Details?
Adetail
Bmessage
CerrorMessage
Ddescription
Step-by-Step Solution
Solution:
  1. Step 1: Recall the standard Problem Details fields

    The standard field for a human-readable explanation is named 'detail'.
  2. Step 2: Compare with other options

    Other options like 'message' or 'description' are not part of the official standard.
  3. Final Answer:

    detail -> Option A
  4. Quick Check:

    Human-readable message field = detail [OK]
Quick Trick: Use 'detail' for human-readable error messages [OK]
Common Mistakes:
  • Using 'message' instead of 'detail'
  • Confusing 'description' with 'detail'
  • Adding non-standard fields without reason

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes