]> git.tdb.fi Git - libs/net.git/blob - source/http/status.h
Add 405 (method not allowed) status
[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         BAD_REQUEST = 400,
14         FORBIDDEN = 403,
15         NOT_FOUND = 404,
16         METHOD_NOT_ALLOWED = 405,
17         INTERNAL_ERROR = 500,
18         NOT_IMPLEMENTED = 501
19 };
20
21 extern std::ostream &operator<<(std::ostream &, Status);
22
23 } // namespace Http
24 } // namespace Msp
25
26 #endif