improving status servlet error handling