devonfw / devon4j

devonfw Java stack - create enterprise-grade business apps in Java safe and fast
Apache License 2.0
83 stars 87 forks source link

improved error handling of service client #351

Closed hohwille closed 3 years ago

hohwille commented 3 years ago

The service client shoud report errors comming from spring boot rather than our own RestServiceExceptionFacade properly and report HTTP status code and error properly via exception.

This is an example JSON response I get from spring-boot app for undefined URL path:

{
  "timestamp":"2021-02-19T15:48:03.492+00:00",
  "status":404,
  "error":"Not Found",
  "message":"","path":"/app/services-404/rest/my-example/v1/business-error"
}