]> git.tdb.fi Git - libs/net.git/commitdiff
Add the most common redirection statuses
authorMikko Rasa <tdb@tdb.fi>
Wed, 20 Apr 2016 21:00:21 +0000 (00:00 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 20 Apr 2016 21:00:21 +0000 (00:00 +0300)
source/http/status.cpp
source/http/status.h

index c5fdf96a854c1a40475b317ba095a52773362af1..b1949ec4423761b6287b5676474042ac06f0bfa2 100644 (file)
@@ -11,6 +11,8 @@ ostream &operator<<(ostream &out, Status status)
        {
        case NONE: out<<"None"; break;
        case OK: out<<"OK"; break;
+       case MOVED_PERMANENTLY: out<<"Moved Permanently"; break;
+       case SEE_OTHER: out<<"See Other"; break;
        case BAD_REQUEST: out<<"Bad Request"; break;
        case FORBIDDEN: out<<"Forbidden"; break;
        case NOT_FOUND: out<<"Not Found"; break;
index fe18a85f3251384e18518788df62b7f5413f450e..5e7d54b19fc994b7331dfbad7095e4e2adef463d 100644 (file)
@@ -10,6 +10,8 @@ enum Status
 {
        NONE = 0,
        OK = 200,
+       MOVED_PERMANENTLY = 301,
+       SEE_OTHER = 303,
        BAD_REQUEST = 400,
        FORBIDDEN = 403,
        NOT_FOUND = 404,