MCPcopy Create free account
hub / github.com/middleapi/orpc / isORPCErrorStatus

Function isORPCErrorStatus

packages/client/src/error.ts:207–209  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

205}
206
207export function isORPCErrorStatus(status: number): boolean {
208 return status < 200 || status >= 400
209}
210
211export function isORPCErrorJson(json: unknown): json is ORPCErrorJSON<ORPCErrorCode, unknown> {
212 if (!isObject(json)) {

Callers 8

error.test.tsFile · 0.90
decodeMethod · 0.90
constructorMethod · 0.90
#successResponseMethod · 0.90
#isDetailedOutputMethod · 0.90
decodeMethod · 0.90
constructorMethod · 0.85
isORPCErrorJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected