How to return custom error page responses with the response status code "200 OK" in Apache httpd

Solution Verified - Updated -

Issue

How do I configure Apache httpd to return custom error page for 403, 404 and 500 response with the response status code "200 OK"?

Environment

  • Red Hat JBoss Web Server
  • Red Hat JBoss Core Services
  • Apache httpd
    • 2.2
    • 2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.