code: public ErrorData getErrorData() {
  	return new ErrorData( 
  	    (Throwable)getRequest().getAttribute( "javax.servlet.error.exception" ),
  	    ((Integer)getRequest().getAttribute( 
  		"javax.servlet.error.status_code" )).intValue(),
  	    (String)getRequest().getAttribute( "javax.servlet.error.request_uri" ),
  	    (String)getRequest().getAttribute( "javax.servlet.error.servlet_name" ) );
      }
docs: Provides convenient access to error information.
  
  @return an ErrorData instance containing information about the
  error, as obtained from the request attributes, as per the
  Servlet specification.  If this is not an error page (that is,
  if the isErrorPage attribute of the page directive is not set
  to "true"), the information is meaningless.
  
  @since JSP 2.0