Summary Files Commits Branches @commit @diff @stats
path: root / src / http / response_code.h
diff options
context:
space:
mode:
Commit74630b4bfe1aa887ef57ee57b22241d030b38d76 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-11-15 21:37:37 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-11-15 21:37:37 +0200
Files3d39c585df1551d69fdb83980c010ec4b579f211 /src/http/response_code.h
tergiv-74630b4bfe1aa887ef57ee57b22241d030b38d76.tar
tergiv-74630b4bfe1aa887ef57ee57b22241d030b38d76.tar.gz
tergiv-74630b4bfe1aa887ef57ee57b22241d030b38d76.zip
Parent3bca23eaaa49fa01f60ecbc5e0a329d29f088506 (diff)
feat!: Initial web server base implementation
1 files changed, 18 insertions, 0 deletions
-rw-r--r--src/http/response_code.h18
diff --git a/src/http/response_code.h b/src/http/response_code.h
new file mode 100644
index 0000000..f5cd191
--- /dev/null
+++ b/src/http/response_code.h
@@ -0,0 +1,18 @@
+#ifndef __TERGIV_RESPONSE_CODE
+#define __TERGIV_RESPONSE_CODE
+
+enum ResponseCode {
+ RC_200_OK,
+ RC_403_FORBIDDEN,
+ RC_404_NOT_FOUND,
+ RC_500_INTERNAL_SERVER_ERRROR,
+ RC_LENGTH
+};
+
+static const char* RESPONSE_CODE_NAME[] = {
+ "200 OK",
+ "403 FORBIDDEN",
+ "404 NOT_FOUND",
+};
+
+#endif /* __TERGIV_RESPONSE_CODE */