ARKI_FAILURE_E002
thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.
What happened
`defineFailure` got a status that is not an integer from 400 to 599.
Fix
Pass an integer status from 400 to 599, or leave `status` out for the default 400.
Check the fix
bun run test -- src/failure.test.tsRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/failure
- Version
- 0.2.0 · next release candidate
- Source
- src/errors.ts:24