add BadHeaderError to exceptions