diff --git a/mongoose.c b/mongoose.c
index bdafef3b4f97f36b9bcaeec8839f55e341a9f5c8..3c1deb5e7dc0bbf181cb859c80f18640abb23107 100644
--- a/mongoose.c
+++ b/mongoose.c
@@ -521,6 +521,8 @@ static const char *status_code_to_str(int status_code) {
     case 200: return "OK";
     case 201: return "Created";
     case 204: return "No Content";
+    case 301: return "Moved Permanently";
+    case 302: return "Found";
     case 304: return "Not Modified";
     case 400: return "Bad Request";
     case 403: return "Forbidden";