Updated error descriptions.
This commit is contained in:
parent
e034dbc299
commit
ade55f8f19
20
README.md
20
README.md
|
@ -79,16 +79,16 @@ g++ -std=c++14 -lmastodon-cpp example.cpp
|
|||
|
||||
## Error codes
|
||||
|
||||
| Code | Explanation |
|
||||
| --------: |:---------------------------------|
|
||||
| 0 | No error |
|
||||
| 22 | Invalid argument |
|
||||
| 78 | URL changed (HTTP 301 or 308) |
|
||||
| 110 | Connection timed out |
|
||||
| 111 | Connection refused |
|
||||
| 132 | curlpp runtime error |
|
||||
| 133 | curlpp logic error |
|
||||
| 255 | Unknown error |
|
||||
| Code | Explanation |
|
||||
| --------: |:-------------------------------------------|
|
||||
| 0 | No error |
|
||||
| 22 | Invalid argument |
|
||||
| 78 | URL changed (HTTP 301 or 308) |
|
||||
| 110 | Connection timed out |
|
||||
| 111 | Connection refused (check http_error_code) |
|
||||
| 132 | curlpp runtime error |
|
||||
| 133 | curlpp logic error |
|
||||
| 255 | Unknown error |
|
||||
|
||||
If you use a debug build, you get more verbose error messages.
|
||||
|
||||
|
|
|
@ -75,18 +75,16 @@ namespace Mastodon
|
|||
* It appears that media attachements can not be base64 encoded.
|
||||
*
|
||||
* @section error Error codes
|
||||
* mastodon-cpp will never use error codes below 11, except 0.
|
||||
* | Code | Explanation |
|
||||
* | --------: |:---------------------------------|
|
||||
* | 0 | No error |
|
||||
* | 11 | Invalid call |
|
||||
* | 12 | Not implemented |
|
||||
* | 13 | URL changed (HTTP 301 or 308) |
|
||||
* | 14 | Cancelled by user |
|
||||
* | 15 | Network error (curlpp exception) |
|
||||
* | 16 | Timeout |
|
||||
* | 100 - 999 | HTTP status codes |
|
||||
* | 65535 | Unknown error |
|
||||
* | Code | Explanation |
|
||||
* | --------: |:-------------------------------------------|
|
||||
* | 0 | No error |
|
||||
* | 22 | Invalid argument |
|
||||
* | 78 | URL changed (HTTP 301 or 308) |
|
||||
* | 110 | Connection timed out |
|
||||
* | 111 | Connection refused (check http_error_code) |
|
||||
* | 132 | curlpp runtime error |
|
||||
* | 133 | curlpp logic error |
|
||||
* | 255 | Unknown error |
|
||||
*
|
||||
* @since before 0.11.0
|
||||
*/
|
||||
|
|
Reference in New Issue