]> git.tdb.fi Git - libs/net.git/blob - source/http/status.h
Implement an asynchronous name resolver class
[libs/net.git] / source / http / status.h
1 #ifndef MSP_HTTPSERVER_STATUS_H_
2 #define MSP_HTTPSERVER_STATUS_H_
3
4 #include <ostream>
5
6 namespace Msp {
7 namespace Http {
8
9 enum Status
10 {
11         NONE = 0,
12         OK = 200,
13         MOVED_PERMANENTLY = 301,
14         SEE_OTHER = 303,
15         BAD_REQUEST = 400,
16         FORBIDDEN = 403,
17         NOT_FOUND = 404,
18         METHOD_NOT_ALLOWED = 405,
19         INTERNAL_ERROR = 500,
20         NOT_IMPLEMENTED = 501
21 };
22
23 extern std::ostream &operator<<(std::ostream &, Status);
24
25 } // namespace Http
26 } // namespace Msp
27
28 #endif