Open blaine-arcjet opened 3 hours ago
It would be useful to have error codes or some way to check what the error was so different responses can be constructed depending on the error. For example if the user agent header is missing you might want to handle it differently from if the IP is missing (or some other custom header).
It would be useful to have error codes or some way to check what the error
Structured errors were brought up previously by @e-moran but I'm not sure if we captured it as an issue. I think that's a very large topic and project though.
Fair enough - doesn't need to be part of this issue.
If we fail to build a fingerprint from characteristics, we should immediately return an error decision saying the fingerprint could not be built.
This should happen before we build the fingerprint at the beginning of the
protect()
function.