I'm attempting to introduce a Business Process to see if I can modify the HTTP response code there, but I wanted to ask what class you were using for the Business Process. Did you use EnsLib.MsgRouter.RoutingEngine?
My code was pretty much identical to what you shared above, except for the following:
Do response.HTTPHeaders.SetAt("HTTP/1.1 400 Bad Request","STATUSLINE")
I added that, but it didn't change anything.
The only other difference is that I am doing all of this in the Business Operation in that I only have and Business Service and Business Operation (no Business Process). Not sure if that would make a difference, but I'm going to put in a Business Operation and apply these changes and see if that works.
Thanks again for the investigation and idea - I'll let you know if inserting a Business Process and the related code works for me.
Thanks for the feedback Don. I ended up calling WRC and was informed that a Business Service alone does not allow control of the HTTP response status code other than either 200 or 500. A CSP layer is apparently needed in order to expose %request.Status.
Log in or create a new account to continue