From c951285049c66c69d17095b8adc11f6d4e559ca1 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 29 Jun 2024 16:02:02 +0800 Subject: [PATCH] modify http response code --- pkg/errs/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/errs/system.go b/pkg/errs/system.go index 1fa3bc6d..39f6729a 100644 --- a/pkg/errs/system.go +++ b/pkg/errs/system.go @@ -8,6 +8,6 @@ var ( ErrApiNotFound = NewSystemError(SystemSubcategoryDefault, 1, http.StatusNotFound, "api not found") ErrMethodNotAllowed = NewSystemError(SystemSubcategoryDefault, 2, http.StatusMethodNotAllowed, "method not allowed") ErrNotImplemented = NewSystemError(SystemSubcategoryDefault, 3, http.StatusNotImplemented, "not implemented") - ErrSystemIsBusy = NewSystemError(SystemSubcategoryDefault, 4, http.StatusNotImplemented, "system is busy") + ErrSystemIsBusy = NewSystemError(SystemSubcategoryDefault, 4, http.StatusServiceUnavailable, "system is busy") ErrNotSupported = NewSystemError(SystemSubcategoryDefault, 5, http.StatusBadRequest, "not supported") )