Reputation: 385
I have a simple http proxy
<pattern:http-proxy name="http-proxy-sample"
transformer-refs="request-transformer" inboundAddress="http://0.0.0.0:16809/"
responseTransformer-refs="response-transformer" outboundAddress="${appnode.host}/xyz/api/" />
This handles all the requests and responses correctly except those with status 4xx. In case of 4xx responses it gives a 500 Internal server error instead.
Upvotes: 1
Views: 122
Reputation: 466
you can try to write a custom transformer, put it under responseTransformer, and handle(propagate,change) any exceptions there
Upvotes: 0