]> git.tdb.fi Git - libs/net.git/blobdiff - source/status.cpp
Pass an exception to signal_socket_error instead of error code
[libs/net.git] / source / status.cpp
index 0eb25f39dafdc03f27e5c8e066b6679a9c11c819..6b95822ac0bac01c52091f58df923f91e9ba9a87 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmsphttp
-Copyright © 2008  Mikkosoft Productions, Mikko Rasa
-Distributed under the LGPL
-*/
-
 #include "status.h"
 
 using namespace std;
@@ -16,13 +9,13 @@ ostream &operator<<(ostream &out, Status status)
 {
        switch(status)
        {
-       case None: out<<"None"; break;
+       case NONE: out<<"None"; break;
        case OK: out<<"OK"; break;
-       case BadRequest: out<<"Bad Request"; break;
-       case Forbidden: out<<"Forbidden"; break;
-       case NotFound: out<<"Not Found"; break;
-       case InternalError: out<<"Internal Error"; break;
-       case NotImplemented: out<<"Not Implemented"; break;
+       case BAD_REQUEST: out<<"Bad Request"; break;
+       case FORBIDDEN: out<<"Forbidden"; break;
+       case NOT_FOUND: out<<"Not Found"; break;
+       case INTERNAL_ERROR: out<<"Internal Error"; break;
+       case NOT_IMPLEMENTED: out<<"Not Implemented"; break;
        default: out<<"Unknown Status"; break;
        }