fix http code for unhealthy backends

This commit is contained in:
Felipe Andrade 2023-04-27 12:10:30 -07:00
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")