MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isClientErrorCode

Function isClientErrorCode

apps/api/src/middleware/error-handler.ts:61–65  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

59};
60
61const isClientErrorCode = (code: string): boolean =>
62 code === ElysiaErrorCodes.NOT_FOUND ||
63 code === ElysiaErrorCodes.VALIDATION ||
64 code === ElysiaErrorCodes.PARSE ||
65 code === ElysiaErrorCodes.INVALID_COOKIE_SIGNATURE;
66
67/*
68 * Application-thrown `ApiError`s carry their own statusCode and reach

Callers 1

errorHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected