\doxysection{httpdefinitions.\+h}
\hypertarget{httpdefinitions_8h_source}{}\label{httpdefinitions_8h_source}\index{src/httpdefinitions.h@{src/httpdefinitions.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*******************************************************************************}}
\DoxyCodeLine{00002\ \textcolor{comment}{Copyright\ (c)\ 2014,\ Jan\ Koester\ jan.koester@gmx.net}}
\DoxyCodeLine{00003\ \textcolor{comment}{All\ rights\ reserved.}}
\DoxyCodeLine{00004\ \textcolor{comment}{}}
\DoxyCodeLine{00005\ \textcolor{comment}{Redistribution\ and\ use\ in\ source\ and\ binary\ forms,\ with\ or\ without}}
\DoxyCodeLine{00006\ \textcolor{comment}{modification,\ are\ permitted\ provided\ that\ the\ following\ conditions\ are\ met:}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ \ \ \ *\ Redistributions\ of\ source\ code\ must\ retain\ the\ above\ copyright}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ \ \ \ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer.}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ \ \ \ *\ Redistributions\ in\ binary\ form\ must\ reproduce\ the\ above\ copyright}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ \ \ \ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer\ in\ the}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ \ \ \ \ \ documentation\ and/or\ other\ materials\ provided\ with\ the\ distribution.}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ \ \ \ *\ Neither\ the\ name\ of\ the\ <organization>\ nor\ the}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ \ \ \ \ \ names\ of\ its\ contributors\ may\ be\ used\ to\ endorse\ or\ promote\ products}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ \ \ \ \ \ derived\ from\ this\ software\ without\ specific\ prior\ written\ permission.}}
\DoxyCodeLine{00015\ \textcolor{comment}{}}
\DoxyCodeLine{00016\ \textcolor{comment}{THIS\ SOFTWARE\ IS\ PROVIDED\ BY\ THE\ COPYRIGHT\ HOLDERS\ AND\ CONTRIBUTORS\ "{}AS\ IS"{}\ AND}}
\DoxyCodeLine{00017\ \textcolor{comment}{ANY\ EXPRESS\ OR\ IMPLIED\ WARRANTIES,\ INCLUDING,\ BUT\ NOT\ LIMITED\ TO,\ THE\ IMPLIED}}
\DoxyCodeLine{00018\ \textcolor{comment}{WARRANTIES\ OF\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE\ ARE}}
\DoxyCodeLine{00019\ \textcolor{comment}{DISCLAIMED.\ IN\ NO\ EVENT\ SHALL\ <COPYRIGHT\ HOLDER>\ BE\ LIABLE\ FOR\ ANY}}
\DoxyCodeLine{00020\ \textcolor{comment}{DIRECT,\ INDIRECT,\ INCIDENTAL,\ SPECIAL,\ EXEMPLARY,\ OR\ CONSEQUENTIAL\ DAMAGES}}
\DoxyCodeLine{00021\ \textcolor{comment}{(INCLUDING,\ BUT\ NOT\ LIMITED\ TO,\ PROCUREMENT\ OF\ SUBSTITUTE\ GOODS\ OR\ SERVICES;}}
\DoxyCodeLine{00022\ \textcolor{comment}{LOSS\ OF\ USE,\ DATA,\ OR\ PROFITS;\ OR\ BUSINESS\ INTERRUPTION)\ HOWEVER\ CAUSED\ AND}}
\DoxyCodeLine{00023\ \textcolor{comment}{ON\ ANY\ THEORY\ OF\ LIABILITY,\ WHETHER\ IN\ CONTRACT,\ STRICT\ LIABILITY,\ OR\ TORT}}
\DoxyCodeLine{00024\ \textcolor{comment}{(INCLUDING\ NEGLIGENCE\ OR\ OTHERWISE)\ ARISING\ IN\ ANY\ WAY\ OUT\ OF\ THE\ USE\ OF\ THIS}}
\DoxyCodeLine{00025\ \textcolor{comment}{SOFTWARE,\ EVEN\ IF\ ADVISED\ OF\ THE\ POSSIBILITY\ OF\ SUCH\ DAMAGE.}}
\DoxyCodeLine{00026\ \textcolor{comment}{*******************************************************************************/}}
\DoxyCodeLine{00027\ \ }
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ \textcolor{comment}{//define\ REQUEST\ TYPE}}
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#define\ PARSEREQUEST\ 0}}
\DoxyCodeLine{00032\ \textcolor{preprocessor}{\#define\ GETREQUEST\ \ \ 1}}
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#define\ POSTREQUEST\ \ 2}}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \textcolor{comment}{//define\ http\ version}}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ \textcolor{preprocessor}{\#define\ HTTPVERSION(V)\ ("{}HTTP/"{}\#V)}}
\DoxyCodeLine{00038\ }
\DoxyCodeLine{00039\ \textcolor{comment}{//\#define\ HTTPCODE(C,N)\ ("{}HTTP/1.0\ "{}\ \#C\ "{}\ "{}\ \#N\ "{}\(\backslash\)r\(\backslash\)n"{})}}
\DoxyCodeLine{00040\ \textcolor{preprocessor}{\#define\ HTTPSTATECODE(C,N)\ (\#C\ "{}\ "{}\ \#N)}}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00042\ \textcolor{comment}{/*HTTP\ 1xx\ states*/}}
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#define\ HTTP100\ HTTPSTATECODE(100,Continue)}}
\DoxyCodeLine{00044\ \textcolor{preprocessor}{\#define\ HTTP101\ HTTPSTATECODE(101,Switching\ Protocols)}}
\DoxyCodeLine{00045\ \textcolor{preprocessor}{\#define\ HTTP102\ HTTPSTATECODE(102,Processing)}}
\DoxyCodeLine{00046\ \textcolor{preprocessor}{\#define\ HTTP118\ HTTPSTATECODE(118,Connection\ timed\ out)}}
\DoxyCodeLine{00047\ }
\DoxyCodeLine{00048\ \textcolor{comment}{/*HTTP\ 2xx\ states*/}}
\DoxyCodeLine{00049\ \textcolor{preprocessor}{\#define\ HTTP200\ HTTPSTATECODE(200,OK)}}
\DoxyCodeLine{00050\ \textcolor{preprocessor}{\#define\ HTTP201\ HTTPSTATECODE(201,Created)}}
\DoxyCodeLine{00051\ \textcolor{preprocessor}{\#define\ HTTP202\ HTTPSTATECODE(202,Accepted)}}
\DoxyCodeLine{00052\ \textcolor{preprocessor}{\#define\ HTTP203\ HTTPSTATECODE(203,Non-\/Authoritative\ Information)}}
\DoxyCodeLine{00053\ \textcolor{preprocessor}{\#define\ HTTP204\ HTTPSTATECODE(204,No\ Content)}}
\DoxyCodeLine{00054\ \textcolor{preprocessor}{\#define\ HTTP205\ HTTPSTATECODE(205,Reset\ Content)}}
\DoxyCodeLine{00055\ \textcolor{preprocessor}{\#define\ HTTP206\ HTTPSTATECODE(206,Partial\ Content)}}
\DoxyCodeLine{00056\ \textcolor{preprocessor}{\#define\ HTTP207\ HTTPSTATECODE(207,Multi-\/Status)}}
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00058\ \textcolor{comment}{/*HTTP\ 3xx\ states*/}}
\DoxyCodeLine{00059\ \textcolor{preprocessor}{\#define\ HTTP300\ HTTPSTATECODE(300,Multiple\ Choices)}}
\DoxyCodeLine{00060\ \textcolor{preprocessor}{\#define\ HTTP301\ HTTPSTATECODE(301,Moved\ Permanently)}}
\DoxyCodeLine{00061\ \textcolor{preprocessor}{\#define\ HTTP302\ HTTPSTATECODE(302,Found)}}
\DoxyCodeLine{00062\ \textcolor{preprocessor}{\#define\ HTTP303\ HTTPSTATECODE(303,See\ Other)}}
\DoxyCodeLine{00063\ \textcolor{preprocessor}{\#define\ HTTP304\ HTTPSTATECODE(304,Not\ Modified)}}
\DoxyCodeLine{00064\ \textcolor{preprocessor}{\#define\ HTTP305\ HTTPSTATECODE(305,Use\ Proxy)}}
\DoxyCodeLine{00065\ \textcolor{preprocessor}{\#define\ HTTP307\ HTTPSTATECODE(307,Temporary\ Redirect)}}
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00067\ \textcolor{comment}{/*HTTP\ 4xx\ states*/}}
\DoxyCodeLine{00068\ \textcolor{preprocessor}{\#define\ HTTP400\ HTTPSTATECODE(400,Bad\ Request)}}
\DoxyCodeLine{00069\ \textcolor{preprocessor}{\#define\ HTTP401\ HTTPSTATECODE(401,Unauthorized)}}
\DoxyCodeLine{00070\ \textcolor{preprocessor}{\#define\ HTTP403\ HTTPSTATECODE(403,Forbidden)}}
\DoxyCodeLine{00071\ \textcolor{preprocessor}{\#define\ HTTP404\ HTTPSTATECODE(404,Not\ Found)}}
\DoxyCodeLine{00072\ \textcolor{preprocessor}{\#define\ HTTP405\ HTTPSTATECODE(405,Method\ Not\ Allowed)}}
\DoxyCodeLine{00073\ \textcolor{preprocessor}{\#define\ HTTP406\ HTTPSTATECODE(406,Not\ Acceptable)}}
\DoxyCodeLine{00074\ \textcolor{preprocessor}{\#define\ HTTP407\ HTTPSTATECODE(407,Proxy\ Authentication\ Required)}}
\DoxyCodeLine{00075\ \textcolor{preprocessor}{\#define\ HTTP408\ HTTPSTATECODE(408,Request\ Time-\/out)}}
\DoxyCodeLine{00076\ \textcolor{preprocessor}{\#define\ HTTP409\ HTTPSTATECODE(409,Conflict)}}
\DoxyCodeLine{00077\ \textcolor{preprocessor}{\#define\ HTTP410\ HTTPSTATECODE(410,Gone)}}
\DoxyCodeLine{00078\ \textcolor{preprocessor}{\#define\ HTTP411\ HTTPSTATECODE(411,Length\ Required)}}
\DoxyCodeLine{00079\ \textcolor{preprocessor}{\#define\ HTTP412\ HTTPSTATECODE(412,Precondition\ Failed)}}
\DoxyCodeLine{00080\ \textcolor{preprocessor}{\#define\ HTTP413\ HTTPSTATECODE(413,Request\ Entity\ Too\ Large)}}
\DoxyCodeLine{00081\ \textcolor{preprocessor}{\#define\ HTTP414\ HTTPSTATECODE(414,Request-\/URI\ Too\ Long)}}
\DoxyCodeLine{00082\ \textcolor{preprocessor}{\#define\ HTTP415\ HTTPSTATECODE(415,Unsupported\ Media\ Type)}}
\DoxyCodeLine{00083\ \textcolor{preprocessor}{\#define\ HTTP416\ HTTPSTATECODE(416,Requested\ range\ not\ satisfiable)}}
\DoxyCodeLine{00084\ \textcolor{preprocessor}{\#define\ HTTP417\ HTTPSTATECODE(417,Expectation\ Failed)}}
\DoxyCodeLine{00085\ \textcolor{preprocessor}{\#define\ HTTP418\ HTTPSTATECODE(418,"{}I'm\ a\ teapot"{})}}
\DoxyCodeLine{00086\ \textcolor{preprocessor}{\#define\ HTTP421\ HTTPSTATECODE(421,There\ are\ too\ many\ connections\ from\ your\ internet\ address)}}
\DoxyCodeLine{00087\ \textcolor{preprocessor}{\#define\ HTTP422\ HTTPSTATECODE(422,Unprocessable\ Entity)}}
\DoxyCodeLine{00088\ \textcolor{preprocessor}{\#define\ HTTP423\ HTTPSTATECODE(423,Locked)}}
\DoxyCodeLine{00089\ \textcolor{preprocessor}{\#define\ HTTP424\ HTTPSTATECODE(424,Failed\ Dependency)}}
\DoxyCodeLine{00090\ \textcolor{preprocessor}{\#define\ HTTP425\ HTTPSTATECODE(425,Unordered\ Collection)}}
\DoxyCodeLine{00091\ \textcolor{preprocessor}{\#define\ HTTP426\ HTTPSTATECODE(426,Upgrade\ Required)}}
\DoxyCodeLine{00092\ }
\DoxyCodeLine{00093\ \textcolor{comment}{/*HTTP\ 5xx\ states*/}}
\DoxyCodeLine{00094\ \textcolor{preprocessor}{\#define\ HTTP500\ HTTPSTATECODE(500,Internal\ Server\ Error)}}
\DoxyCodeLine{00095\ \textcolor{preprocessor}{\#define\ HTTP501\ HTTPSTATECODE(501,Not\ Implemented)}}
\DoxyCodeLine{00096\ \textcolor{preprocessor}{\#define\ HTTP502\ HTTPSTATECODE(502,Bad\ Gateway)}}
\DoxyCodeLine{00097\ \textcolor{preprocessor}{\#define\ HTTP503\ HTTPSTATECODE(503,Service\ Unavailable)}}
\DoxyCodeLine{00098\ \textcolor{preprocessor}{\#define\ HTTP504\ HTTPSTATECODE(504,Gateway\ Time-\/out)}}
\DoxyCodeLine{00099\ \textcolor{preprocessor}{\#define\ HTTP505\ HTTPSTATECODE(505,HTTP\ Version\ not\ supported)}}
\DoxyCodeLine{00100\ \textcolor{preprocessor}{\#define\ HTTP506\ HTTPSTATECODE(506,Variant\ Also\ Negotiates)}}
\DoxyCodeLine{00101\ \textcolor{preprocessor}{\#define\ HTTP507\ HTTPSTATECODE(507,Insufficient\ Storage)}}
\DoxyCodeLine{00102\ \textcolor{preprocessor}{\#define\ HTTP509\ HTTPSTATECODE(509,Bandwidth\ Limit\ Exceeded)}}
\DoxyCodeLine{00103\ \textcolor{preprocessor}{\#define\ HTTP510\ HTTPSTATECODE(510,Not\ Extended)}}

\end{DoxyCode}
