在回复状态中使用额外的数字

在瓦尼什, .status 变量可以包含三位以上的数字,这对于向其发送信息非常有用 vcl_synth{} 关于生成哪条错误消息::

sub vcl_recv {
   if ([...]) {
       return(synth(12404));
   }
}

sub vcl_synth {
    if (resp.status == 12404) {
        [...]       // this specific 404
    } else if (resp.status % 1000 == 404) {
        [...]       // all other 404's
    }
}