如果底层的后端发生故障,应该返回如下所示的JSON响应。
{ "msg" :{ "status": 2 } }
这可能与清漆?
这个怎么样:
sub vcl_backend_error { set beresp.http.Content-Type = "application/json; charset=utf-8"; synthetic( {"{ "msg" :{ "status": 2 } }"} ); return (deliver); }