1 #ifndef _CPR_STATUS_CODES 2 #define _CPR_STATUS_CODES 76 return (code >= 100 && code < 200);
79 return (code >= 200 && code < 300);
82 return (code >= 300 && code < 400);
85 return (code >= 400 && code < 500);
88 return (code >= 500 && code < 600);
constexpr std::int32_t HTTP_CREATED
constexpr std::int32_t HTTP_INTERNAL_SERVER_ERROR
constexpr std::int32_t HTTP_UNSUPPORTED_MEDIA_TYPE
constexpr std::int32_t HTTP_PROCESSING
constexpr std::int32_t HTTP_BAD_REQUEST
constexpr std::int32_t HTTP_CONTINUE
constexpr std::int32_t HTTP_PROXY_AUTHENTICATION_REQUIRED
constexpr std::int32_t HTTP_EXPECTATION_FAILED
constexpr std::int32_t HTTP_REQUEST_TIMEOUT
constexpr std::int32_t HTTP_FORBIDDEN
constexpr std::int32_t HTTP_ALREADY_REPORTED
constexpr std::int32_t HTTP_UNPROCESSABLE_ENTITY
constexpr std::int32_t HTTP_UPGRADE_REQUIRED
constexpr std::int32_t HTTP_PRECONDITION_FAILED
constexpr std::int32_t HTTP_TOO_MANY_REQUESTS
constexpr std::int32_t HTTP_SWITCHING_PROTOCOL
constexpr std::int32_t HTTP_SEE_OTHER
constexpr std::int32_t HTTP_EARLY_HINTS
constexpr std::int32_t HTTP_ACCEPTED
constexpr bool is_redirect(const std::int32_t code)
constexpr std::int32_t HTTP_NOT_FOUND
constexpr std::int32_t HTTP_NETWORK_AUTHENTICATION_REQUIRED
constexpr std::int32_t HTTP_MULTIPLE_CHOICE
constexpr std::int32_t HTTP_NOT_IMPLEMENTED
constexpr std::int32_t HTTP_PAYLOAD_TOO_LARGE
constexpr std::int32_t HTTP_NOT_EXTENDED
constexpr std::int32_t HTTP_RESET_CONTENT
constexpr std::int32_t HTTP_UNUSED
constexpr std::int32_t HTTP_MULTI_STATUS
constexpr std::int32_t HTTP_LENGTH_REQUIRED
constexpr std::int32_t HTTP_MISDIRECTED_REQUEST
constexpr std::int32_t HTTP_PAYMENT_REQUIRED
constexpr std::int32_t HTTP_GATEWAY_TIMEOUT
constexpr std::int32_t HTTP_NOT_ACCEPTABLE
constexpr bool is_informational(const std::int32_t code)
constexpr std::int32_t HTTP_OK
constexpr std::int32_t HTTP_VARIANT_ALSO_NEGOTIATES
constexpr std::int32_t HTTP_UNAUTHORIZED
constexpr std::int32_t HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
constexpr std::int32_t HTTP_GONE
constexpr std::int32_t HTTP_URI_TOO_LONG
constexpr std::int32_t HTTP_IM_A_TEAPOT
constexpr std::int32_t HTTP_CONFLICT
constexpr std::int32_t HTTP_PERMANENT_REDIRECT
constexpr std::int32_t HTTP_MOVED_PERMANENTLY
constexpr std::int32_t HTTP_FAILED_DEPENDENCY
constexpr std::int32_t HTTP_TOO_EARLY
constexpr std::int32_t HTTP_HTTP_VERSION_NOT_SUPPORTED
constexpr bool is_success(const std::int32_t code)
constexpr std::int32_t HTTP_NOT_MODIFIED
constexpr bool is_client_error(const std::int32_t code)
constexpr std::int32_t HTTP_BAD_GATEWAY
constexpr std::int32_t HTTP_PARTIAL_CONTENT
constexpr bool is_server_error(const std::int32_t code)
constexpr std::int32_t HTTP_LOCKED
constexpr std::int32_t HTTP_LOOP_DETECTED
constexpr std::int32_t HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE
constexpr std::int32_t HTTP_REQUESTED_RANGE_NOT_SATISFIABLE
constexpr std::int32_t HTTP_NON_AUTHORITATIVE_INFORMATION
constexpr std::int32_t HTTP_METHOD_NOT_ALLOWED
constexpr std::int32_t HTTP_SERVICE_UNAVAILABLE
constexpr std::int32_t HTTP_FOUND
constexpr std::int32_t HTTP_NO_CONTENT
constexpr std::int32_t HTTP_IM_USED
constexpr std::int32_t HTTP_INSUFFICIENT_STORAGE
constexpr std::int32_t HTTP_TEMPORARY_REDIRECT
constexpr std::int32_t HTTP_USE_PROXY
constexpr std::int32_t HTTP_PRECONDITION_REQUIRED