Re: allow response status codes with curl

2019-10-02 Thread Boris Carvajal via Digitalmars-d-announce
On Thursday, 3 October 2019 at 01:02:43 UTC, Hampus wrote: I have a program that is using std.curl and right now if a http request returns a status code other than 200 the program will crash like this:

Re: allow response status codes with curl

2019-10-02 Thread Anonymouse via Digitalmars-d-announce
On Thursday, 3 October 2019 at 01:02:43 UTC, Hampus wrote: I have a program that is using std.curl and right now if a http request returns a status code other than 200 the program will crash like this:

allow response status codes with curl

2019-10-02 Thread Hampus via Digitalmars-d-announce
I have a program that is using std.curl and right now if a http request returns a status code other than 200 the program will crash like this: std.net.curl.HTTPStatusException@C:\D\dmd2\windows\bin\..\..\src\phobos\std\net\curl.d(1082): HTTP request returned status code 404 (Not Found) What