ffead.server.doc
Main Page
Classes
Files
File List
HTTPResponseStatus.h
1
/*
2
Copyright 2009-2012, Sumeet Chhetri
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
/*
17
* HTTPResponseStatus.h
18
*
19
* Created on: 25-Jan-2013
20
* Author: sumeetc
21
*/
22
23
#ifndef HTTPRESPONSESTATUS_H_
24
#define HTTPRESPONSESTATUS_H_
25
#include "string"
26
using namespace
std;
27
28
class
HTTPResponseStatus
{
29
HTTPResponseStatus
(
int
,
string
);
30
int
code;
31
string
msg;
32
public
:
33
HTTPResponseStatus
();
34
virtual
~
HTTPResponseStatus
();
35
int
getCode();
36
string
getMsg();
37
38
static
HTTPResponseStatus
Continue;
39
static
HTTPResponseStatus
Switching;
40
static
HTTPResponseStatus
Ok;
41
static
HTTPResponseStatus
Created;
42
static
HTTPResponseStatus
Accepted;
43
static
HTTPResponseStatus
NonAuthInfo;
44
static
HTTPResponseStatus
NoContent;
45
static
HTTPResponseStatus
ResetContent;
46
static
HTTPResponseStatus
PartialContent;
47
static
HTTPResponseStatus
ObjectMoved;
48
static
HTTPResponseStatus
MovedPermanently;
49
static
HTTPResponseStatus
NotModified;
50
static
HTTPResponseStatus
TempRedirect;
51
static
HTTPResponseStatus
BadRequest;
52
static
HTTPResponseStatus
AccessDenied;
53
static
HTTPResponseStatus
Unauthorized;
54
static
HTTPResponseStatus
Forbidden;
55
static
HTTPResponseStatus
NotFound;
56
static
HTTPResponseStatus
InvalidMethod;
57
static
HTTPResponseStatus
InvalidMime;
58
static
HTTPResponseStatus
ProxyAuthRequired;
59
static
HTTPResponseStatus
PreconditionFailed;
60
static
HTTPResponseStatus
ReqEntityLarge;
61
static
HTTPResponseStatus
ReqUrlLarge;
62
static
HTTPResponseStatus
UnsupportedMedia;
63
static
HTTPResponseStatus
InvalidReqRange;
64
static
HTTPResponseStatus
ExecutionFailed;
65
static
HTTPResponseStatus
LockedError;
66
static
HTTPResponseStatus
InternalServerError;
67
static
HTTPResponseStatus
InvalidHeaderConf;
68
static
HTTPResponseStatus
BadGateway;
69
static
HTTPResponseStatus
ServiceUnavailable;
70
static
HTTPResponseStatus
GatewayTimeout;
71
static
HTTPResponseStatus
HttpVersionNotSupported;
72
};
73
74
#endif
/* HTTPRESPONSESTATUS_H_ */
include
HTTPResponseStatus.h
Generated on Sun Mar 10 2013 11:01:55 for ffead.server.doc by
1.8.3.1