You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Pass Through Error Messages

For optimum usability the SRP HTTP Framework generates HTTP status codes that are appropriate to a particular response generated by the framework. For instance, HTTP status 404 indicates the requested resource wasn't found. There are other HTTP status codes which might need to be returned by your application.

By default IIS intercept certain HTTP status codes from applications and handles them for the application. This results in IIS hiding messages returned by the application and replacing them with a generic IIS response. For optimum usage with the HTTP Framework on IIS we recommend you allow HTTP errors returned by the application to pass through IIS to the end user.

  1. Located the web.conf in the website root directory.
  2. Open web.conf in notepad.
  3. Locate the <system.webServer> tag.
  4. Immediately after the tag add:

    <httpErrors existingResponse="PassThrough" />

    As shown in the image blow.
  5. Save the web.config file.

Any HTTP errors returned by the application will pass through IIS. For more information about the httpErrors directive is available.

  • No labels