]> git.tdb.fi Git - libs/net.git/blobdiff - source/status.h
Initial revision
[libs/net.git] / source / status.h
diff --git a/source/status.h b/source/status.h
new file mode 100644 (file)
index 0000000..5d2b196
--- /dev/null
@@ -0,0 +1,32 @@
+/* $Id$
+
+This file is part of libmsphttp
+Copyright © 2008  Mikkosoft Productions, Mikko Rasa
+Distributed under the LGPL
+*/
+
+#ifndef MSP_HTTPSERVER_STATUS_H_
+#define MSP_HTTPSERVER_STATUS_H_
+
+#include <ostream>
+
+namespace Msp {
+namespace Http {
+
+enum Status
+{
+       None=0,
+       OK=200,
+       BadRequest=400,
+       Forbidden=403,
+       NotFound=404,
+       InternalError=500,
+       NotImplemented=501
+};
+
+extern std::ostream &operator<<(std::ostream &, Status);
+
+} // namespace Http
+} // namespace Msp
+
+#endif