Hi,
I am currently using ZnClient to fetch data from a service behind "cloudflare"
and sometimes the real/origin backend is unreachable/fails. Cloudflare has
added additional[1] 5XX codes and ZnStatusLine>>#code: will signal an
ZnUnknownHttpStatusCode because of that.
I wonder how ZnClient should deal with these errors? IIRC the HTTP RFC
specifies error classes and without knowing what "525" means one can know that
the request was not successful and that the server is at "fault"?
Should ZnStatusLine handle an unknown code gracefully? E.g. >>#reason: seems to
do that already?
have a nice weekend
holger
[1] https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#Cloudflare