The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
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'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.