4#ifndef _Stroika_Foundation_IO_Network_HTTP_Status_h_
5#define _Stroika_Foundation_IO_Network_HTTP_Status_h_ 1
7#include "Stroika/Foundation/StroikaPreComp.h"
22 namespace StatusCodes {
23 constexpr Status kOK = 200;
24 constexpr Status kCreated = 201;
25 constexpr Status kNoContent = 204;
27 constexpr Status kMovedPermanently = 301;
28 constexpr Status kNotModified = 304;
35 constexpr Status kBadRequest = 400;
36 constexpr Status kUnauthorized = 401;
37 constexpr Status kNotFound = 404;
38 constexpr Status kMethodNotAllowed = 405;
42 constexpr Status kRequestTimeout = 408;
43 constexpr Status kConflict = 408;
50 constexpr Status kTooManyRequests = 429;
55 constexpr Status kInternalError = 500;
59 constexpr Status kServiceUnavailable = 503;
64 constexpr Status kGatewayTimeout = 504;
constexpr bool IsClientError(Status s)
several status codes considered client error, so check if it is among them
constexpr bool IsOK(Status s)
several status codes considered OK, so check if it is among them
constexpr bool IsServerError(Status s)
several status codes considered Server Error, so check if it is among them