add headers for exceptions