HTTPD_ERR_RET(req, 503, TRUE);
HTTPD_ERR_MSG_RET(req, 503, "Has URI", TRUE);
static int http__policy_req(struct Con *con, Httpd_req_data *req){  if (!httpd_policy_request(con, req,                            httpd_opts->conf, httpd_opts->match_request))  {    Vstr_base *s1 = httpd_opts->conf->tmp;    if (!req->user_return_error_code)      vlg_info(vlg, "CONF-MATCH-REQ-ERR from[$<sa:%p>]:"               " backtrace: $<vstr.all:%p>\n", CON_CEVNT_SA(con), s1);    return (TRUE);  }    if (con->evnt->flag_q_closed)  {    Vstr_base *s1 = req->policy->s->policy_name;        vlg_info(vlg, "BLOCKED from[$<sa:%p>]: policy $<vstr.all:%p>\n",             CON_CEVNT_SA(con), s1);    return (http_con_cleanup(con, req));  }  if (req->direct_uri)  {    Vstr_base *s1 = req->policy->s->policy_name;    vlg_info(vlg, "CONF-MATCH-REQ-ERR from[$<sa:%p>]: policy $<vstr.all:%p>"             " Has URI.\n", CON_CEVNT_SA(con), s1);    HTTPD_ERR_RET(req, 503, TRUE);  }    if (req->policy->auth_token->len) /* they need rfc2617 auth */  {    Vstr_base *data = con->evnt->io_r;    size_t pos = req->http_hdrs->hdr_authorization->pos;    size_t len = req->http_hdrs->hdr_authorization->len;    Vstr_base *auth_token = req->policy->auth_token;    int auth_ok = TRUE;        if (!VIPREFIX(data, pos, len, "Basic"))      auth_ok = FALSE;    else    {      len -= CLEN("Basic"); pos += CLEN("Basic");      HTTP_SKIP_LWS(data, pos, len);      if (!vstr_cmp_eq(data, pos, len, auth_token, 1, auth_token->len))        auth_ok = FALSE;    }        if (!auth_ok)    {      req->user_return_error_code = FALSE;      HTTPD_ERR(req, 401);    }  }    return (TRUE);}