How to override HTTP status code in SOA-P 5 HTTP Gateway

Solution Unverified - Updated -

Issue

  • I have a question regarding setting specific http codes in a rest response.
  • The scenario and request flow is as below:
platform A <-> B:Jboss ESB (HTTP Gateway + Restful/http router) <-> C: restful service
  • The response from C is http return code only. when it returns "400 Bad Request", B needs to forward 400 to A. Obviously http return code from B to A is 200.
  • How can I override 200 with 400 in ESB as A retrieves http request code only?

Environment

  • Red Hat JBoss SOA Platform (SOA-P) 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content