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