Forum Discussion
Sabir_Alvi
Aug 31, 2018Altocumulus
Custom Message using iRule for Runtime Error
Our application throws a runtime error during few code testing in our Test lab. We do not want this error to be displayed when browsed externally via internet. I'm looking for an iRule that will pres...
Faruk_AYDIN
Aug 31, 2018Nimbostratus
In my opinion, use a custom page for all types of server-side errors. Server sides errors start with 5xx. Use this irule:
when HTTP_RESPONSE {
if { [HTTP::status] > 499 } {
HTTP::respond 200 content "Oops Unfortunately, your request casued a error." "Content-Type" "text/html"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects