Users should not call this predicate directly (or in fact any other predicate of this library). You can make this predicate return a document using throw/1:
..., throw(http_reply(forbidden('/secret')).
Did you know ... | Search Documentation: |
Predicate http_status_reply/4 |
Status can be one of the following:
basic(Realm)
digest(Digest)
authorise(basic(Realm))
. Deprecated.Users should not call this predicate directly (or in fact any other predicate of this library). You can make this predicate return a document using throw/1:
..., throw(http_reply(forbidden('/secret')).