Added error headers for error reporting.