]> git.tdb.fi Git - libs/net.git/blob - source/status.cpp
Rename data to content in Message
[libs/net.git] / source / status.cpp
1 /* $Id$
2
3 This file is part of libmsphttp
4 Copyright © 2008  Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
6 */
7
8 #include "status.h"
9
10 using namespace std;
11
12 namespace Msp {
13 namespace Http {
14
15 ostream &operator<<(ostream &out, Status status)
16 {
17         switch(status)
18         {
19         case NONE: out<<"None"; break;
20         case OK: out<<"OK"; break;
21         case BAD_REQUEST: out<<"Bad Request"; break;
22         case FORBIDDEN: out<<"Forbidden"; break;
23         case NOT_FOUND: out<<"Not Found"; break;
24         case INTERNAL_ERROR: out<<"Internal Error"; break;
25         case NOT_IMPLEMENTED: out<<"Not Implemented"; break;
26         default: out<<"Unknown Status"; break;
27         }
28
29         return out;
30 }
31
32 } // namespace Http
33 } // namespace Msp