Search code examples
restbiztalkwebhttpbindingbiztalk-2013r2

How can I return HTTP-400 from a BizTalk Rest service?


I am using BizTalk 2013 R2 and I have a RESTFUL service.

How can I return a HTTP-400 response to a client?


Solution

  • Set WCF.OutboundHttpStatusCode property in message assignment shape:

    MyResponseMessage(WCF.OutboundHttpStatusCode) = "400";