From 74630b4bfe1aa887ef57ee57b22241d030b38d76 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 15 Nov 2025 21:37:37 +0200 Subject: feat!: Initial web server base implementation --- src/http/response_code.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/http/response_code.h (limited to 'src/http/response_code.h') 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 */ -- cgit v1.3.1-23-gd82d