DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
API Development Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
API Development
Why is problemResponse() in Implement It Yourself designed as a single shared helper rather than each route building its own error body inline?
A
It has no particular benefit, just style preference
B
It guarantees every error response across the entire API — regardless of which developer wrote that route — follows the same consistent RFC 9457 shape and media type
C
Shared helpers are always faster at runtime
D
This pattern is required by the HTTP spec itself
Check Answer