Преглед на файлове

Merge pull request #75 from crtxcr/http_response_codes

More status messages for http codes
yhirose преди 7 години
родител
ревизия
890025e347
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      httplib.h

+ 5 - 0
httplib.h

@@ -732,7 +732,12 @@ inline const char* status_message(int status)
 {
     switch (status) {
     case 200: return "OK";
+    case 301: return "Moved Permanently";
+    case 302: return "Found";
+    case 303: return "See Other";
+    case 304: return "Not Modified";
     case 400: return "Bad Request";
+    case 403: return "Forbidden";
     case 404: return "Not Found";
     case 415: return "Unsupported Media Type";
     default: