16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP_HTTPRESPONSECODE_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP_HTTPRESPONSECODE_H_ 151 logger::LogEntry(
"HttpResponseCodes", __func__).d(
"code", code).
m(
"Unknown HTTP response code."));
172 switch (responseCode) {
174 return "HTTP_RESPONSE_CODE_UNDEFINED";
178 return "SUCCESS_CREATED";
180 return "SUCCESS_ACCEPTED";
182 return "SUCCESS_NO_CONTENT";
184 return "SUCCESS_PARTIAL_CONTENT";
186 return "SUCCESS_END_CODE";
188 return "REDIRECTION_MULTIPLE_CHOICES";
190 return "REDIRECTION_MOVED_PERMANENTLY";
192 return "REDIRECTION_FOUND";
194 return "REDIRECTION_SEE_ANOTHER";
196 return "REDIRECTION_TEMPORARY_REDIRECT";
198 return "REDIRECTION_PERMANENT_REDIRECT";
200 return "CLIENT_ERROR_BAD_REQUEST";
202 return "CLIENT_ERROR_FORBIDDEN";
204 return "CLIENT_ERROR_THROTTLING_EXCEPTION";
206 return "SERVER_ERROR_INTERNAL";
208 return "SERVER_ERROR_NOT_IMPLEMENTED";
210 return "SERVER_UNAVAILABLE";
213 .d(
"longValue", static_cast<long>(responseCode))
214 .
m(
"Unknown HTTP response code."));
235 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP_HTTPRESPONSECODE_H_ HTTP code for too many requests to the service.
Definition: HttpResponseCode.h:62
HTTP code for internal error by server for not supporting the facility requested. ...
Definition: HttpResponseCode.h:67
HTTPResponseCode
Definition: HttpResponseCode.h:29
std::string responseCodeToString(HTTPResponseCode responseCode)
Definition: HttpResponseCode.h:171
HTTP code for invalid request by user.
Definition: HttpResponseCode.h:58
::std::string string
Definition: gtest-port.h:1097
HTTP Success with partial content.
Definition: HttpResponseCode.h:42
Content can be found on another URI, and the redirect should be cached - cannot change HTTP method...
Definition: HttpResponseCode.h:55
No HTTP response received.
Definition: HttpResponseCode.h:31
HTTP code for service not available.
Definition: HttpResponseCode.h:69
Content can be found on another URI, but the redirect should not be cached - cannot change HTTP metho...
Definition: HttpResponseCode.h:53
Content moved permanently.
Definition: HttpResponseCode.h:47
First success code.
Definition: HttpResponseCode.h:72
HTTPResponseCode intToHTTPResponseCode(int code)
Definition: HttpResponseCode.h:115
See another - Should issue a GET to the other URI and assume that data was received on this request...
Definition: HttpResponseCode.h:51
Last code in redirection range.
Definition: HttpResponseCode.h:79
HTTP Success with response payload.
Definition: HttpResponseCodes.h:31
No HTTP response received.
Definition: HttpResponseCodes.h:29
bool isStatusCodeSuccess(HTTPResponseCode code)
Definition: HttpResponseCode.h:88
std::mutex m
Definition: AlexaPresentationTest.cpp:91
bool isRedirect(HTTPResponseCode code)
Definition: HttpResponseCode.h:98
HTTP code for internal error by server which didn't fulfill the request.
Definition: HttpResponseCode.h:65
HTTP Success with no response payload.
Definition: HttpResponseCode.h:40
First code in redirection range.
Definition: HttpResponseCode.h:77
int responseCodeToInt(HTTPResponseCode responseCode)
Definition: HttpResponseCode.h:161
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
HTTP Success with no response payload.
Definition: HttpResponseCodes.h:35
Content found on another URI.
Definition: HttpResponseCode.h:49
type
Definition: upload.py:443
Definition: HttpResponseCode.h:38
void acsdkError(const LogEntry &entry)
std::ostream & operator<<(std::ostream &os, const HTTPResponseCode &code)
Definition: HttpResponseCode.h:225
HTTP Success with response payload.
Definition: HttpResponseCode.h:34
HTTP Success with payload accepted for processing.
Definition: HttpResponseCodes.h:33
Multiple redirection choices.
Definition: HttpResponseCode.h:45
HTTP Success with new resource created.
Definition: HttpResponseCode.h:36
HTTP code for forbidden request by user.
Definition: HttpResponseCode.h:60
LogEntry is used to compile the log entry text to log via Logger.
Definition: LogEntry.h:33
Last success code.
Definition: HttpResponseCode.h:74