(error: unknown)
| 73 | code === ElysiaErrorCodes.PARSE || |
| 74 | code === ElysiaErrorCodes.INVALID_COOKIE_SIGNATURE; |
| 75 | |
| 76 | /* |
| 77 | * Application-thrown `ApiError`s carry their own statusCode and reach |
| 78 | * this handler before Elysia gets to tag them with an error code. Any |
| 79 | * 4xx from the app layer is by definition client-driven (bad input, |
| 80 | * missing auth, forbidden, conflict): log at `warn` so it doesn't |
| 81 | * pollute the error stream alongside genuine 5xx bugs. 5xx still logs |