web/api/v1: rename http status code. (#7864)
Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
parent
d30f202c08
commit
a14245b4b1
|
@ -1514,7 +1514,7 @@ func (api *API) respondError(w http.ResponseWriter, apiErr *apiError, data inter
|
||||||
case errorBadData:
|
case errorBadData:
|
||||||
code = http.StatusBadRequest
|
code = http.StatusBadRequest
|
||||||
case errorExec:
|
case errorExec:
|
||||||
code = 422
|
code = http.StatusUnprocessableEntity
|
||||||
case errorCanceled, errorTimeout:
|
case errorCanceled, errorTimeout:
|
||||||
code = http.StatusServiceUnavailable
|
code = http.StatusServiceUnavailable
|
||||||
case errorInternal:
|
case errorInternal:
|
||||||
|
|
Loading…
Reference in New Issue