Bird
0
0

What will be the 'type' field value in a Problem Details response if the error is a generic server error and no specific URI is provided?

medium📝 state output Q5 of 15
Spring Boot - Exception Handling
What will be the 'type' field value in a Problem Details response if the error is a generic server error and no specific URI is provided?
Anull
Bhttps://example.com/error
C/error
Dabout:blank
Step-by-Step Solution
Solution:
  1. Step 1: Recall the default 'type' value in Problem Details

    If no specific URI is provided, the 'type' defaults to 'about:blank'.
  2. Step 2: Verify other options are not standard defaults

    Other options are either custom or invalid for the standard.
  3. Final Answer:

    about:blank -> Option D
  4. Quick Check:

    Default 'type' value = about:blank [OK]
Quick Trick: Default 'type' is 'about:blank' if no URI given [OK]
Common Mistakes:
  • Using null or empty string instead
  • Assuming a custom URI is always required
  • Confusing 'type' with 'title'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes