diff options
1 files changed, 18 insertions, 0 deletions
| -rw-r--r-- | src/http/response_code.h | 18 |
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 */ |
