X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstatus.cpp;h=6b95822ac0bac01c52091f58df923f91e9ba9a87;hb=1c965907682f4714db7b952915cf5b6bf9b7f4c1;hp=0eb25f39dafdc03f27e5c8e066b6679a9c11c819;hpb=070d56e7b0036ca2e4234eb06dcae83ebfb3df34;p=libs%2Fnet.git diff --git a/source/status.cpp b/source/status.cpp index 0eb25f3..6b95822 100644 --- a/source/status.cpp +++ b/source/status.cpp @@ -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; }