]> git.tdb.fi Git - libs/net.git/blob - source/status.h
Rename data to content in Message
[libs/net.git] / source / status.h
1 /* $Id$
2
3 This file is part of libmsphttp
4 Copyright © 2008  Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_HTTPSERVER_STATUS_H_
9 #define MSP_HTTPSERVER_STATUS_H_
10
11 #include <ostream>
12
13 namespace Msp {
14 namespace Http {
15
16 enum Status
17 {
18         NONE=0,
19         OK=200,
20         BAD_REQUEST=400,
21         FORBIDDEN=403,
22         NOT_FOUND=404,
23         INTERNAL_ERROR=500,
24         NOT_IMPLEMENTED=501
25 };
26
27 extern std::ostream &operator<<(std::ostream &, Status);
28
29 } // namespace Http
30 } // namespace Msp
31
32 #endif