AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Enumerations | Functions
HttpResponseCode.h File Reference
#include <iostream>
#include <string>
#include "AVSCommon/Utils/Logger/LoggerUtils.h"
Include dependency graph for HttpResponseCode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::utils
 
 alexaClientSDK::avsCommon::utils::http
 

Enumerations

enum  alexaClientSDK::avsCommon::utils::http::HTTPResponseCode {
  alexaClientSDK::avsCommon::utils::http::HTTP_RESPONSE_CODE_UNDEFINED = 0, alexaClientSDK::avsCommon::utils::http::SUCCESS_OK = 200, alexaClientSDK::avsCommon::utils::http::SUCCESS_CREATED = 201, alexaClientSDK::avsCommon::utils::http::SUCCESS_ACCEPTED = 202,
  alexaClientSDK::avsCommon::utils::http::SUCCESS_NO_CONTENT = 204, alexaClientSDK::avsCommon::utils::http::SUCCESS_PARTIAL_CONTENT = 206, alexaClientSDK::avsCommon::utils::http::REDIRECTION_MULTIPLE_CHOICES = 300, alexaClientSDK::avsCommon::utils::http::REDIRECTION_MOVED_PERMANENTLY = 301,
  alexaClientSDK::avsCommon::utils::http::REDIRECTION_FOUND = 302, alexaClientSDK::avsCommon::utils::http::REDIRECTION_SEE_ANOTHER = 303, alexaClientSDK::avsCommon::utils::http::REDIRECTION_TEMPORARY_REDIRECT = 307, alexaClientSDK::avsCommon::utils::http::REDIRECTION_PERMANENT_REDIRECT = 308,
  alexaClientSDK::avsCommon::utils::http::CLIENT_ERROR_BAD_REQUEST = 400, alexaClientSDK::avsCommon::utils::http::CLIENT_ERROR_FORBIDDEN = 403, alexaClientSDK::avsCommon::utils::http::CLIENT_ERROR_THROTTLING_EXCEPTION = 429, alexaClientSDK::avsCommon::utils::http::SERVER_ERROR_INTERNAL = 500,
  alexaClientSDK::avsCommon::utils::http::SERVER_ERROR_NOT_IMPLEMENTED = 501, alexaClientSDK::avsCommon::utils::http::SERVER_UNAVAILABLE = 503, alexaClientSDK::avsCommon::utils::http::SUCCESS_START_CODE = SUCCESS_OK, alexaClientSDK::avsCommon::utils::http::SUCCESS_END_CODE = 299,
  alexaClientSDK::avsCommon::utils::http::REDIRECTION_START_CODE = REDIRECTION_MULTIPLE_CHOICES, alexaClientSDK::avsCommon::utils::http::REDIRECTION_END_CODE = REDIRECTION_PERMANENT_REDIRECT
}
 

Functions

bool alexaClientSDK::avsCommon::utils::http::isStatusCodeSuccess (HTTPResponseCode code)
 
bool alexaClientSDK::avsCommon::utils::http::isRedirect (HTTPResponseCode code)
 
HTTPResponseCode alexaClientSDK::avsCommon::utils::http::intToHTTPResponseCode (int code)
 
int alexaClientSDK::avsCommon::utils::http::responseCodeToInt (HTTPResponseCode responseCode)
 
std::string alexaClientSDK::avsCommon::utils::http::responseCodeToString (HTTPResponseCode responseCode)
 
std::ostream & alexaClientSDK::avsCommon::utils::http::operator<< (std::ostream &os, const HTTPResponseCode &code)
 

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0