title: How to set server level custom error text in Websphere application server
body: <p>There is currently a requirement for us to edit the text delivered error messages that the IBM Websphere throws when it could not access the application, we limited the IP addresses which can access the application.
  in case of invalid IP address, Websphere looks for a custom error page which we added in our application but it can't access them so it throws </p>
  
  <pre><code>SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below
  </code></pre>
  
  <p>also with <code>500 java.lang.RuntimeException: invalid host header</code>
  and <code>404 SRVE0295E: Error reported: 404</code></p>
  
  <p>I already tried Webcontainer custom property <code>com.ibm.ws.webcontainer.displayTextWhenNoErrorPageDefined</code> which allows the display of the custom text when there is no error page defined at the application level, but it doesn't work.
  and there is <code>com.ibm.ws.webcontainer.suppressHtmlRecursiveErrorOutput</code> which prevent printing stacktrace, but it's not a solution for me.</p>
  
  <p>I just need to make these errors more human readable with just a simple text. and it needs to be done only in Websphere and not in the application code.</p>