Type Alias AntlionErrorCode
AntlionErrorCode:
| "invalid-options"
| "invalid-request"
| "missing-authorization"
| "bearer-scheme"
| "duplicate-authorization"
| "malformed-authorization"
| "missing-proof"
| "duplicate-proof"
| "malformed-proof"
| "proof-typ"
| "proof-algorithm"
| "proof-key"
| "htm-mismatch"
| "htu-mismatch"
| "proof-signature"
| "token-invalid"
| "token-unbound"
| "jkt-mismatch"
| "ath-mismatch"
| "proof-expired"
| "proof-in-future"
| "nonce-missing"
| "nonce-invalid"
| "replayed"
| "replay-store-failed"
| "replay-store-full"
Why Antlion refused.
invalid-optionsandinvalid-requestare bugs in the calling code (a profile or store built wrong, a request object that is not a request) and carry no DPoPRefusal; answer them with a 500.replay-store-fullcomes from SingleProcessReplayStore and reaches you as thecauseof areplay-store-failed, as does areplay-store-failedfrom the Redis or Postgres store when its database replies something it can't read. Every other code is a refused request, and the error'srefusalsays what to send back.