Small change to PageRequestProcessor#error and #respond methods to determine accept header type