]> git.tdb.fi Git - libs/net.git/blobdiff - source/status.cpp
Rename data to content in Message
[libs/net.git] / source / status.cpp
index 0eb25f39dafdc03f27e5c8e066b6679a9c11c819..9971ae263d630d5c16f7cd47d87cf441a8dd76f7 100644 (file)
@@ -16,13 +16,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;
        }