From ff5677ad197947177c158fe857caff4f0e242045 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 27 Oct 2020 20:35:56 -0400 Subject: [PATCH] Updated README --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index a90e721..84efbb2 100644 --- a/README.md +++ b/README.md @@ -365,6 +365,27 @@ httplib::Client cli("http://localhost:8080"); httplib::Client cli("https://localhost"); ``` +### Error code + +Here is the list of errors from `Result::error()`. + +```c++ +enum Error { + Success = 0, + Unknown, + Connection, + BindIPAddress, + Read, + Write, + ExceedRedirectCount, + Canceled, + SSLConnection, + SSLLoadingCerts, + SSLServerVerification, + UnsupportedMultipartBoundaryChars +}; +``` + ### GET with HTTP headers ```c++