The entire library(http_header) says: "The library
library(http/http_header) provides primitives for parsing and composing
HTTP headers. Its functionality is normally hidden by the other parts of
the HTTP server and client libraries."
In this case, you simply do http_404([], Request). You can access all the
codes from http_status_reply using
throw(http_reply(Term))
E.g., (you typically only pass the path):
throw(http_reply(not_found('SomeBadUrl')))
I do agree this needs better documentation :-(
Cheers --- Jan
>
>
> Thanks for your time.
> Steve
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWI-Prolog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swi-prolog+...@googlegroups.com
> <mailto:
swi-prolog+...@googlegroups.com>.
> Visit this group at
http://groups.google.com/group/swi-prolog.
> For more options, visit
https://groups.google.com/d/optout.