ASGI, and further work related to www Amirouche Boubekki (15 Jun 2020 05:31 UTC)
Re: ASGI, and further work related to www John Cowan (15 Jun 2020 15:12 UTC)
Re: ASGI, and further work related to www Amirouche Boubekki (31 Jul 2020 11:05 UTC)
Re: ASGI, and further work related to www Lassi Kortela (31 Jul 2020 13:39 UTC)
Re: ASGI, and further work related to www John Cowan (02 Aug 2020 03:45 UTC)
Re: ASGI, and further work related to www Lassi Kortela (02 Aug 2020 06:13 UTC)
HTTP error codes Lassi Kortela (02 Aug 2020 06:21 UTC)
Re: HTTP error codes Amirouche Boubekki (02 Aug 2020 13:27 UTC)
Re: HTTP error codes John Cowan (03 Aug 2020 16:26 UTC)
Foreign errors are not necessarily errors Lassi Kortela (03 Aug 2020 16:35 UTC)
Re: Foreign errors are not necessarily errors John Cowan (03 Aug 2020 16:38 UTC)
Re: Foreign errors are not necessarily errors Lassi Kortela (03 Aug 2020 16:49 UTC)
Re: Foreign errors are not necessarily errors John Cowan (03 Aug 2020 16:53 UTC)
Re: HTTP error codes hga@xxxxxx (03 Aug 2020 16:47 UTC)
Re: HTTP error codes John Cowan (03 Aug 2020 17:04 UTC)
Re: HTTP error codes John Cowan (03 Aug 2020 17:07 UTC)
Re: ASGI, and further work related to www Amirouche Boubekki (02 Aug 2020 13:34 UTC)

Re: HTTP error codes Amirouche Boubekki 02 Aug 2020 13:27 UTC

Hello Lassi!

Le dim. 2 août 2020 à 08:21, Lassi Kortela <xxxxxx@lassi.io> a écrit :
>
> > Your draft makes me think that "HTTP request and response objects"
> > should be its own SRFI.
>
> For HTTP errors we could use SRFI 198: Foreign Interface Error Handling.
>
> (make-foreign-error
>   'set 'http
>   'number 418
>   'message "I'm a teapot"
>   'http-response #<http-request-object>)
>
> (foreign-error-ref e 'http-resonse) => #<http-request-object>
>
> Is there a standard set of mnemonics for the HTTP status codes? Go uses
> these ones: <https://golang.org/pkg/net/http/#pkg-constants>. Each name
> just seems like a CamelCase version of the title of that status.

There are, so called, reasons, but I never remember those, I mostly
always search the HTTP code to remember what it means.

> Here's the list of HTTP status codes from IANA:
> <https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml>.
> I assume it's the official list, but like many IANA lists, it is
> incomplete in practice.

HTTP codes are not necessarily error codes. Not sure whether it is a
"foreign error" either.

There is prolly something to do along the lines of foreign error, I am
not certain of what as of yet.