better errors from the headers parser