summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/HttpResponse.cpp2
-rw-r--r--src/HttpResponse.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/HttpResponse.cpp b/src/HttpResponse.cpp
index 2adf84e..2d69583 100644
--- a/src/HttpResponse.cpp
+++ b/src/HttpResponse.cpp
@@ -11,6 +11,8 @@ static std::string status_code_string(HttpStatusCode status_code)
return "403 Forbidden";
case HttpStatusCode::NotFound:
return "404 Not Found";
+ case HttpStatusCode::InternalServerError:
+ return "500 Internal Server Error";
}
}
diff --git a/src/HttpResponse.h b/src/HttpResponse.h
index 3da6cb8..b0c0cd9 100644
--- a/src/HttpResponse.h
+++ b/src/HttpResponse.h
@@ -6,7 +6,8 @@
enum class HttpStatusCode {
OK = 200,
Forbidden = 403,
- NotFound = 404
+ NotFound = 404,
+ InternalServerError = 500,
};
class HttpResponse {