fix http code for unhealthy backends
This commit is contained in:
parent
f447404608
commit
b7f559c4c2
@ -88,7 +88,7 @@ var (
|
|||||||
ErrNotHealthy = &RPCErr{
|
ErrNotHealthy = &RPCErr{
|
||||||
Code: JSONRPCErrorInternal - 18,
|
Code: JSONRPCErrorInternal - 18,
|
||||||
Message: "backend is currently not healthy to serve traffic",
|
Message: "backend is currently not healthy to serve traffic",
|
||||||
HTTPErrorCode: 429,
|
HTTPErrorCode: 503,
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrBackendUnexpectedJSONRPC = errors.New("backend returned an unexpected JSON-RPC response")
|
ErrBackendUnexpectedJSONRPC = errors.New("backend returned an unexpected JSON-RPC response")
|
||||||
|
Loading…
Reference in New Issue
Block a user