t1 / problem-details

Problem Details [RFC-9457] Java API, TCK, and implementations for JAX-RS and (currently not) Spring Boot
Apache License 2.0
17 stars 5 forks source link

Specify type & code via config #44

Open t1 opened 3 years ago

t1 commented 3 years ago

Add an option to configure the mapping of some built-in exceptions, e.g. org.eclipse.microprofile.faulttolerance.exceptions.CircuitBreakerOpenException to status code 503 Service Unavailable.

And there should be a default config for as many built-in exceptions as possible. See https://github.com/microprofile-extensions/jaxrs-ext/blob/master/configurable-exception-handler/README.md for a good starting point.