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: