Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Java standard for problem details [rfc-7807] #78

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

t1
Copy link
Contributor

@t1 t1 commented Jan 17, 2020

I’d like to contribute a standard for better generation and handling of http message bodies for application error conditions. I’ve just blogged about it: https://blog.codecentric.de/en/2020/01/rfc-7807-problem-details-with-spring-boot-and-jax-rs/

tl;dr: exceptions get mapped to rfc-7807 compliant application/problem+json http bodies on the server side and/or back to exceptions on the client side. You can rely on useful defaults for the fields or annotate your exceptions when you have specific requirements.

I have a potential implementation here that runs on Payara and Open Liberty, and mostly on Widlfly 18... and on Spring Boot.

So the code is there, and I'm working on the spec text.

What do you say?

Signed-off-by: Rüdiger zu Dohna <snackbox@sinntr.eu>
@kenfinnigan
Copy link
Contributor

Have you suggested this to Jakarta RESTful Web Services spec? From a quick look through it appears more appropriate as additions there.

Could you post details of this and a link to the PR to https://groups.google.com/forum/#!forum/microprofile for wider discussion? Thanks

@t1
Copy link
Contributor Author

t1 commented Jan 18, 2020

Could you post details of this and a link to the PR to https://groups.google.com/forum/#!forum/microprofile for wider discussion? Thanks

Just did: https://groups.google.com/d/topic/microprofile/vMk65Gf6kiw/discussion including an answer to your other question ;-)

@t1
Copy link
Contributor Author

t1 commented Jan 23, 2020

I've added an issue to MP Rest Client

@Emily-Jiang Emily-Jiang merged commit 3f5283f into eclipse:master Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants