I\'m trying to report on every HTTP status code returned from my webapp. However the status code does not appear to be accessible via the ServletResponse, or even if I cast
One thing missing from David's answer above is that you should also override the other form of sendError:
@Override public void sendError(int sc, String msg) throws IOException { httpStatus = sc; super.sendError(sc, msg); }