Corrected issues with error reporting in the servlet implementation.