diff scid/pageutil.c @ 44:576f4b1ec79f

scid: implement API authentication
author David Demelier <markand@malikania.fr>
date Thu, 11 Aug 2022 21:24:07 +0200
parents 752bb1cd2dd8
children 16f1c72d1635
line wrap: on
line diff
--- a/scid/pageutil.c	Thu Aug 11 11:34:32 2022 +0200
+++ b/scid/pageutil.c	Thu Aug 11 21:24:07 2022 +0200
@@ -44,6 +44,7 @@
 static const int statustab[] = {
 	[KHTTP_200] = 200,
 	[KHTTP_400] = 400,
+	[KHTTP_401] = 401,
 	[KHTTP_404] = 404,
 	[KHTTP_500] = 500
 };
@@ -51,6 +52,7 @@
 static const char * const statusmsg[] = {
 	[KHTTP_200] = "OK",
 	[KHTTP_400] = "Bad Request",
+	[KHTTP_401] = "Unauthorized",
 	[KHTTP_404] = "Not Found",
 	[KHTTP_500] = "Internal Server Error"
 };