X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fhttp%2Fstatus.h;h=5e7d54b19fc994b7331dfbad7095e4e2adef463d;hb=HEAD;hp=075016dd48aee2c6acc17fc345a48746d6bb306a;hpb=cf8d2e48581eeb8f1b83e8c48321a0bc2ffa6d83;p=libs%2Fnet.git diff --git a/source/http/status.h b/source/http/status.h index 075016d..5f4656e 100644 --- a/source/http/status.h +++ b/source/http/status.h @@ -2,6 +2,7 @@ #define MSP_HTTPSERVER_STATUS_H_ #include +#include namespace Msp { namespace Http { @@ -10,14 +11,17 @@ enum Status { NONE = 0, OK = 200, + MOVED_PERMANENTLY = 301, + SEE_OTHER = 303, BAD_REQUEST = 400, FORBIDDEN = 403, NOT_FOUND = 404, + METHOD_NOT_ALLOWED = 405, INTERNAL_ERROR = 500, NOT_IMPLEMENTED = 501 }; -extern std::ostream &operator<<(std::ostream &, Status); +MSPNET_API std::ostream &operator<<(std::ostream &, Status); } // namespace Http } // namespace Msp