Nebula
Loading...
Searching...
No Matches
Http::HttpStatus Class Reference

#include <httpstatus.h>

Detailed Description

HTTP status code enumeration (e.g.

404 Not Found).

Public Types

enum  Code {
  Continue = 100 , OK = 200 , BadRequest = 400 , Forbidden = 403 ,
  NotFound = 404 , MethodNotAllowed = 405 , NotAcceptable = 406 , InternalServerError = 500 ,
  NotImplemented = 501 , ServiceUnavailable = 503 , InvalidHttpStatus = 0xffff
}
 status codes More...
 

Static Public Member Functions

static Code FromString (const Util::String &str)
 convert from string
 
static Util::String ToString (Code c)
 convert to string
 
static Code FromLong (long l)
 convert from long
 
static Util::String ToHumanReadableString (Code c)
 convert code to human readable string
 

Member Enumeration Documentation

◆ Code

status codes

Enumerator
Continue 
OK 
BadRequest 
Forbidden 
NotFound 
MethodNotAllowed 
NotAcceptable 
InternalServerError 
NotImplemented 
ServiceUnavailable 
InvalidHttpStatus 

Member Function Documentation

◆ FromLong()

HttpStatus::Code Http::HttpStatus::FromLong ( long l)
static

convert from long

◆ FromString()

HttpStatus::Code Http::HttpStatus::FromString ( const Util::String & str)
static

convert from string

◆ ToHumanReadableString()

String Http::HttpStatus::ToHumanReadableString ( Code c)
static

convert code to human readable string

◆ ToString()

String Http::HttpStatus::ToString ( Code c)
static

convert to string


The documentation for this class was generated from the following files: