Skip to content

Commit ff5677a

Browse files
committed
Updated README
1 parent 8b1b31a commit ff5677a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,27 @@ httplib::Client cli("http://localhost:8080");
365365
httplib::Client cli("https://localhost");
366366
```
367367

368+
### Error code
369+
370+
Here is the list of errors from `Result::error()`.
371+
372+
```c++
373+
enum Error {
374+
Success = 0,
375+
Unknown,
376+
Connection,
377+
BindIPAddress,
378+
Read,
379+
Write,
380+
ExceedRedirectCount,
381+
Canceled,
382+
SSLConnection,
383+
SSLLoadingCerts,
384+
SSLServerVerification,
385+
UnsupportedMultipartBoundaryChars
386+
};
387+
```
388+
368389
### GET with HTTP headers
369390

370391
```c++

0 commit comments

Comments
 (0)