Anil Puliyeril
Anil Puliyeril

Reputation: 385

Mule http-proxy doesn't handle 401

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

Answers (2)

Iv&#225;n
Iv&#225;n

Reputation: 31

Add this property: exceptionOnMessageError="false"

Upvotes: 2

secario
secario

Reputation: 466

you can try to write a custom transformer, put it under responseTransformer, and handle(propagate,change) any exceptions there

Upvotes: 0

Related Questions