- Notifications
You must be signed in to change notification settings - Fork171
Add standard HTTP CODE Errors in HttpClient.h#65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
RFC7231 error code definitions
@@ -38,6 +38,68 @@ static const int HTTP_ERROR_INVALID_RESPONSE =-4; | |||
#define HTTP_HEADER_USER_AGENT "User-Agent" | |||
#define HTTP_HEADER_VALUE_CHUNKED "chunked" | |||
// HTTP codes see RFC7231 | |||
typedef enum { | |||
HTTP_CODE_CONTINUE = 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I'd prefer the prefix to beHTTP_STATUS_CODE_
instead ofHTTP_CODE_
here.
CLAassistant commentedApr 9, 2021
|
RFC7231 error code definitions