From a14245b4b1332763d52f943ec387b17455364f98 Mon Sep 17 00:00:00 2001 From: johncming Date: Fri, 28 Aug 2020 18:18:31 +0800 Subject: [PATCH] web/api/v1: rename http status code. (#7864) Signed-off-by: johncming --- web/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/v1/api.go b/web/api/v1/api.go index 4bd00c176..e9becdca6 100644 --- a/web/api/v1/api.go +++ b/web/api/v1/api.go @@ -1514,7 +1514,7 @@ func (api *API) respondError(w http.ResponseWriter, apiErr *apiError, data inter case errorBadData: code = http.StatusBadRequest case errorExec: - code = 422 + code = http.StatusUnprocessableEntity case errorCanceled, errorTimeout: code = http.StatusServiceUnavailable case errorInternal: