(code: string)
| 59 | }; |
| 60 | |
| 61 | const 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 |