cpprestsdk
cpprestsdk copied to clipboard
cpprestsdk error reporing
I'd like to ask why library error reporting is so inconsistent? e.g.: https://github.com/Microsoft/cpprestsdk/pull/563
Also there are different error codes for same problems on different operating systems Like for DNS resolution failure there is specific code from WinHTTP, but on Linux, it is reported as EPERM, that is so strange.
Connection timeout is reported with ECANCELLED error code, that is also unexpected.
This library probably have to have it's own set of error codes for most well-known failures, and additionally report system specific codes.
I also advocate for an own set of error codes!