Skip to content

Commit 9cac379

Browse files
committed
fix: change 500 to 503 for misconfiguration
1 parent 3a4a6e7 commit 9cac379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

error_defaults.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ var ErrConflict = DefaultError{
6060

6161
var ErrMisconfiguration = DefaultError{
6262
IDField: "invalid_configuration",
63-
StatusField: http.StatusText(http.StatusInternalServerError),
63+
StatusField: http.StatusText(http.StatusServiceUnavailable),
6464
ErrorField: "Invalid configuration",
6565
ReasonField: "One or more configuration values are invalid. Please report this to the system administrator.",
66-
CodeField: http.StatusInternalServerError,
66+
CodeField: http.StatusServiceUnavailable,
6767
GRPCCodeField: codes.Internal,
6868
}
6969

0 commit comments

Comments
 (0)