Adding headers to error handler