cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

cpprestsdk error reporing

Open mr-MOD opened this issue 6 years ago • 1 comments

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.

mr-MOD avatar Mar 25 '19 16:03 mr-MOD

I also advocate for an own set of error codes!

AndreasGeisler avatar Dec 12 '23 13:12 AndreasGeisler