The optional error-page element specifies a mapping between an error code or exception type to the path of a resource in the Web Application.
When an error occurs-while WebLogic Server is responding to an HTTP request, or as a result of a Java exception-WebLogic Server returns an HTML page that displays either the HTTP error code or a page containing the Java error message. You can define your own HTML page to be displayed in place of these default error pages or in response to a Java exception.
For more information, see Customizing HTTP Error Responses and How WebLogic Server Resolves HTTP Requests.
The following table describes the elements you can define within an error-page element. Element
Required/
Optional
Description
<error-code>
Optional
A valid HTTP error code, for example 404.
<exception-type>
Optional
A fully-qualified class name of a Java exception type, for example java.lang.
<location>
Required
The location of the resource to display in response to the error. For example /myErrorPg.html