r/SpringBoot • u/rl_085 • Feb 07 '26
Question Error responses for REST API
Do you implement RFC 9457 in your error responses? I saw that Spring provides an abstraction for this with ProblemDetail, it looks good but not many people are using it.
12
Upvotes
View all comments
Show parent comment
1
u/No_Language_7707 Feb 08 '26
I have a question though? If you are creating a custom RuntimeException then why are you handling them? Ideally they are meant to be like programmatic errors right