limited HttpError from writing body, in case of a HEAD request