Topic
  • 2 replies
  • Latest Post - ‏2012-12-30T09:28:35Z by HermannSW
DavidBlanco
DavidBlanco
31 Posts

Pinned topic http code errors generated by datapower?

‏2012-12-28T10:55:00Z |
Hello

can datapower generate http code errors?
I send a message from datapower to a iis, i can see in the datapower logs a http 500 error code, but in the iis logs i can´t see anything, the request fails and not reach the iis, is datapower who generated this http 500 error code?

Thanks
Updated on 2012-12-30T09:28:35Z at 2012-12-30T09:28:35Z by HermannSW
  • Trey
    Trey
    225 Posts

    Re: http code errors generated by datapower?

    ‏2012-12-28T14:16:23Z  
    David,
    Yes. DataPower will by default obfuscate any backend content errors and simply throw a 500 error on failures. We do have a setting called "Process Backend Errors" but I would be careful as you expose begin to expose the behavior to specific requests.

    The generic 500 response is generated by DP and valid when the backend connection fails.

    If you have any other questions let me know.
    Thanks
    Trey
  • HermannSW
    HermannSW
    4651 Posts

    Re: http code errors generated by datapower?

    ‏2012-12-30T09:28:35Z  
    Hi David,

    Trey answered your HTTP 500 question.

    For setting a HTTP return code in DataPower yourself, find an example in this posting:
    https://www.ibm.com/developerworks/mydeveloperworks/blogs/HermannSW/entry/april_1_2011_5_15_pm14

    There my "favorite" HTTP return code 418 I'm a teapot is used ... ;-)

     
    Hermann<myXsltBlog/> <myXsltTweets/>