Allow specifying headers in error.