Access Manager : Preview Customized Error Messages
You can do the following to preview the customized error messages located here:
/opt/novell/apache2/share/apache2/error
How to customize Access Manager Error Messages
<Location /status_HTTP_BAD_REQUEST>
Redirect 400 /status_HTTP_BAD_REQUEST
</Location>
<Location /status_HTTP_UNAUTHORIZED>
Redirect 401 /status_HTTP_UNAUTHORIZED
</Location>
<Location /status_HTTP_PAYMENT_REQUIRED>
Redirect 402 /status_HTTP_PAYMENT_REQUIRED
</Location>
<Location /status_HTTP_FORBIDDEN>
Redirect 403 /status_HTTP_FORBIDDEN
</Location>
<Location /status_HTTP_NOT_FOUND>
Redirect 404 /status_HTTP_NOT_FOUND
</Location>
<Location /status_HTTP_METHOD_NOT_ALLOWED>
Redirect 405 /status_HTTP_METHOD_NOT_ALLOWED
</Location>
<Location /status_HTTP_NOT_ACCEPTABLE>
Redirect 406 /status_HTTP_NOT_ACCEPTABLE
</Location>
<Location /status_HTTP_PROXY_AUTHENTICATION_REQUIRED>
Redirect 407 /status_HTTP_PROXY_AUTHENTICATION_REQUIRED
</Location>
<Location /status_HTTP_REQUEST_TIME_OUT>
Redirect 408 /status_HTTP_REQUEST_TIME_OUT
</Location>
<Location /status_HTTP_CONFLICT>
Redirect 409 /status_HTTP_CONFLICT
</Location>
<Location /status_HTTP_GONE>
Redirect 410 /status_HTTP_GONE
</Location>
<Location /status_HTTP_LENGTH_REQUIRED>
Redirect 411 /status_HTTP_LENGTH_REQUIRED
</Location>
<Location /status_HTTP_PRECONDITION_FAILED>
Redirect 412 /status_HTTP_PRECONDITION_FAILED
</Location>
<Location /status_HTTP_REQUEST_ENTITY_TOO_LARGE>
Redirect 413 /status_HTTP_REQUEST_ENTITY_TOO_LARGE
</Location>
<Location /status_HTTP_REQUEST_URI_TOO_LARGE>
Redirect 414 /status_HTTP_REQUEST_URI_TOO_LARGE
</Location>
<Location /status_HTTP_UNSUPPORTED_MEDIA_TYPE>
Redirect 415 /status_HTTP_UNSUPPORTED_MEDIA_TYPE
</Location>
<Location /status_HTTP_RANGE_NOT_SATISFIABLE>
Redirect 416 /status_HTTP_RANGE_NOT_SATISFIABLE
</Location>
<Location /status_HTTP_EXPECTATION_FAILED>
Redirect 417 /status_HTTP_EXPECTATION_FAILED
</Location>
<Location /status_HTTP_UNPROCESSABLE_ENTITY>
Redirect 422 /status_HTTP_UNPROCESSABLE_ENTITY
</Location>
<Location /status_HTTP_LOCKED>
Redirect 423 /status_HTTP_LOCKED
</Location>
<Location /status_HTTP_FAILED_DEPENDENCY>
Redirect 424 /status_HTTP_FAILED_DEPENDENCY
</Location>
<Location /status_HTTP_UPGRADE_REQUIRED>
Redirect 421 /status_HTTP_UPGRADE_REQUIRED
</Location>
<Location /status_HTTP_INTERNAL_SERVER_ERROR>
Redirect 500 /status_HTTP_INTERNAL_SERVER_ERROR
</Location>
<Location /status_HTTP_NOT_IMPLEMENTED>
Redirect 501 /status_HTTP_NOT_IMPLEMENTED
</Location>
<Location /status_HTTP_BAD_GATEWAY>
Redirect 502 /status_HTTP_BAD_GATEWAY
</Location>
<Location /status_HTTP_SERVICE_UNAVAILABLE>
Redirect 503 /status_HTTP_SERVICE_UNAVAILABLE
</Location>
<Location /status_HTTP_GATEWAY_TIME_OUT>
Redirect 504 /status_HTTP_GATEWAY_TIME_OUT
</Location>
<Location /status_HTTP_VERSION_NOT_SUPPORTED>
Redirect 505 /status_HTTP_VERSION_NOT_SUPPORTED
</Location>
<Location /status_HTTP_VARIANT_ALSO_VARIES>
Redirect 506 /status_HTTP_VARIANT_ALSO_VARIES
</Location>
<Location /status_HTTP_INSUFFICIENT_STORAGE>
Redirect 507 /status_HTTP_INSUFFICIENT_STORAGE
</Location>
<Location /status_HTTP_NOT_EXTENDED>
Redirect 510 /status_HTTP_NOT_EXTENDED
</Location>
Redirect 400 /status_HTTP_BAD_REQUEST
</Location>
<Location /status_HTTP_UNAUTHORIZED>
Redirect 401 /status_HTTP_UNAUTHORIZED
</Location>
<Location /status_HTTP_PAYMENT_REQUIRED>
Redirect 402 /status_HTTP_PAYMENT_REQUIRED
</Location>
<Location /status_HTTP_FORBIDDEN>
Redirect 403 /status_HTTP_FORBIDDEN
</Location>
<Location /status_HTTP_NOT_FOUND>
Redirect 404 /status_HTTP_NOT_FOUND
</Location>
<Location /status_HTTP_METHOD_NOT_ALLOWED>
Redirect 405 /status_HTTP_METHOD_NOT_ALLOWED
</Location>
<Location /status_HTTP_NOT_ACCEPTABLE>
Redirect 406 /status_HTTP_NOT_ACCEPTABLE
</Location>
<Location /status_HTTP_PROXY_AUTHENTICATION_REQUIRED>
Redirect 407 /status_HTTP_PROXY_AUTHENTICATION_REQUIRED
</Location>
<Location /status_HTTP_REQUEST_TIME_OUT>
Redirect 408 /status_HTTP_REQUEST_TIME_OUT
</Location>
<Location /status_HTTP_CONFLICT>
Redirect 409 /status_HTTP_CONFLICT
</Location>
<Location /status_HTTP_GONE>
Redirect 410 /status_HTTP_GONE
</Location>
<Location /status_HTTP_LENGTH_REQUIRED>
Redirect 411 /status_HTTP_LENGTH_REQUIRED
</Location>
<Location /status_HTTP_PRECONDITION_FAILED>
Redirect 412 /status_HTTP_PRECONDITION_FAILED
</Location>
<Location /status_HTTP_REQUEST_ENTITY_TOO_LARGE>
Redirect 413 /status_HTTP_REQUEST_ENTITY_TOO_LARGE
</Location>
<Location /status_HTTP_REQUEST_URI_TOO_LARGE>
Redirect 414 /status_HTTP_REQUEST_URI_TOO_LARGE
</Location>
<Location /status_HTTP_UNSUPPORTED_MEDIA_TYPE>
Redirect 415 /status_HTTP_UNSUPPORTED_MEDIA_TYPE
</Location>
<Location /status_HTTP_RANGE_NOT_SATISFIABLE>
Redirect 416 /status_HTTP_RANGE_NOT_SATISFIABLE
</Location>
<Location /status_HTTP_EXPECTATION_FAILED>
Redirect 417 /status_HTTP_EXPECTATION_FAILED
</Location>
<Location /status_HTTP_UNPROCESSABLE_ENTITY>
Redirect 422 /status_HTTP_UNPROCESSABLE_ENTITY
</Location>
<Location /status_HTTP_LOCKED>
Redirect 423 /status_HTTP_LOCKED
</Location>
<Location /status_HTTP_FAILED_DEPENDENCY>
Redirect 424 /status_HTTP_FAILED_DEPENDENCY
</Location>
<Location /status_HTTP_UPGRADE_REQUIRED>
Redirect 421 /status_HTTP_UPGRADE_REQUIRED
</Location>
<Location /status_HTTP_INTERNAL_SERVER_ERROR>
Redirect 500 /status_HTTP_INTERNAL_SERVER_ERROR
</Location>
<Location /status_HTTP_NOT_IMPLEMENTED>
Redirect 501 /status_HTTP_NOT_IMPLEMENTED
</Location>
<Location /status_HTTP_BAD_GATEWAY>
Redirect 502 /status_HTTP_BAD_GATEWAY
</Location>
<Location /status_HTTP_SERVICE_UNAVAILABLE>
Redirect 503 /status_HTTP_SERVICE_UNAVAILABLE
</Location>
<Location /status_HTTP_GATEWAY_TIME_OUT>
Redirect 504 /status_HTTP_GATEWAY_TIME_OUT
</Location>
<Location /status_HTTP_VERSION_NOT_SUPPORTED>
Redirect 505 /status_HTTP_VERSION_NOT_SUPPORTED
</Location>
<Location /status_HTTP_VARIANT_ALSO_VARIES>
Redirect 506 /status_HTTP_VARIANT_ALSO_VARIES
</Location>
<Location /status_HTTP_INSUFFICIENT_STORAGE>
Redirect 507 /status_HTTP_INSUFFICIENT_STORAGE
</Location>
<Location /status_HTTP_NOT_EXTENDED>
Redirect 510 /status_HTTP_NOT_EXTENDED
</Location>
STEP 4: Update the Access Gateway.
STEP 5: Access the URL https://publisheddnsname/status_HTTPCODE to see the customized message on browser.e.g. to see the custom message for HTTP_GONE( response code 410) access https://publisheddnsname/HTTP_GONE
<Location /status_HTTP_VERSION_NOT_SUPPORTED>
Order allow,deny
Allow from IP_address_of_admin_system
Redirect 505 /status_HTTP_VERSION_NOT_SUPPORTED
</Location>
Order allow,deny
Allow from IP_address_of_admin_system
Redirect 505 /status_HTTP_VERSION_NOT_SUPPORTED
</Location>