in src/main/java/org/apache/sling/engine/impl/DefaultErrorHandler.java [95:117]
public void handleError(final int status,
String message,
final SlingHttpServletRequest request,
final SlingHttpServletResponse response)
throws IOException {
// If we have a delegate let it handle the error
if (delegate != null) {
try {
delegate.handleError(status, message, request, response);
} catch (final Exception e) {
delegateFailed(status, message, e, request, response);
}
return;
}
if (message == null) {
message = "HTTP ERROR:" + String.valueOf(status);
} else {
message = "HTTP ERROR:" + status + " - " + message;
}
sendError(status, message, null, request, response);
}