if (uri == null)
return null;
Integer status = (Integer) getCauchoRequest().getAttribute(AbstractHttpRequest.STATUS_CODE);
return new ErrorData(getThrowable(),
status == null ? 0 : status.intValue(),
(String) getCauchoRequest().getAttribute(AbstractHttpRequest.ERROR_URI),
(String) getCauchoRequest().getAttribute(AbstractHttpRequest.SERVLET_NAME));
}