Allow the servlet result handler to set headers on an error message.