mule - How do I handle an exception and send back an HTTP response in mulesoft? -


in mulesoft, how take globally caught exception in http driven flow , return error code (rather not returning back?) have http endpoint (request/response), makes database connection. if db connection fails, caught, http response responds unrecognizable. graceful way force 500 example? thanks! by

it's quite simple, mule 3.5 , earlier version, can configure http response builder in global exception block , return status http code :- http://www.mulesoft.org/documentation/display/33x/http+response+builder , http://www.mulesoft.org/documentation/display/current/http+response+builder

for mule 3.6 can follow :- http://www.mulesoft.org/documentation/display/current/http+listener+connector


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -