aboutsummaryrefslogtreecommitdiff
path: root/codes.h
diff options
context:
space:
mode:
authorMr. Goblin <mrgoblin@mrgoblin.net>2026-09-27 02:23:53 +0300
committerMr. Goblin <mrgoblin@mrgoblin.net>2026-09-27 02:23:53 +0300
commit930a8d8f28ebfa31b1326ae2d42a35fa99d751cc (patch)
treeb862095d531685bb5ae8decaf108bf4f3dbdb97f /codes.h
parenta29297e707b089cc6e4bb00f3b331127aa585810 (diff)
http-like codes, some server skelet; git test
Diffstat (limited to 'codes.h')
-rw-r--r--codes.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/codes.h b/codes.h
new file mode 100644
index 0000000..db2ecbe
--- /dev/null
+++ b/codes.h
@@ -0,0 +1,19 @@
+#ifndef _H_SENTRY
+#define _H_SENTRY
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define CODE_200_STR "OK"
+#define CODE_201_STR "Created"
+#define CODE_400_STR "Bad request"
+#define CODE_401_STR "Unauthorized"
+#define CODE_403_STR "Forbidden"
+#define CODE_404_STR "Not found"
+#define CODE_409_STR "Conflict"
+#define CODE_503_STR "Service unavailable"
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* _H_SENTRY */