From 00087cbe3c3e74e292dc8cd044361f5f36e2d3fc Mon Sep 17 00:00:00 2001 From: "S. Amir Mohammad Najafi" Date: Thu, 14 Dec 2023 18:24:45 +0330 Subject: [PATCH] fix(json): error json status code --- .../etc/nginx/templates/location.d/10-error-page.conf.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx-json/etc/nginx/templates/location.d/10-error-page.conf.template b/nginx-json/etc/nginx/templates/location.d/10-error-page.conf.template index 035c509..909b0b3 100644 --- a/nginx-json/etc/nginx/templates/location.d/10-error-page.conf.template +++ b/nginx-json/etc/nginx/templates/location.d/10-error-page.conf.template @@ -4,5 +4,5 @@ location = /_error.json { internal; auth_basic off; default_type application/json; - return $status '{"ok": false, "statusCode": $status, "errorCode": "serve_error", "meta": {"server": "alwatr", "status": "$status_text"}}'; + return 200 '{"ok": false, "statusCode": $status, "errorCode": "serve_error", "meta": {"server": "alwatr", "status": "$status_text"}}'; }