Mercurial > sci
comparison 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 |
comparison
equal
deleted
inserted
replaced
43:6854efe15210 | 44:576f4b1ec79f |
---|---|
42 } | 42 } |
43 | 43 |
44 static const int statustab[] = { | 44 static const int statustab[] = { |
45 [KHTTP_200] = 200, | 45 [KHTTP_200] = 200, |
46 [KHTTP_400] = 400, | 46 [KHTTP_400] = 400, |
47 [KHTTP_401] = 401, | |
47 [KHTTP_404] = 404, | 48 [KHTTP_404] = 404, |
48 [KHTTP_500] = 500 | 49 [KHTTP_500] = 500 |
49 }; | 50 }; |
50 | 51 |
51 static const char * const statusmsg[] = { | 52 static const char * const statusmsg[] = { |
52 [KHTTP_200] = "OK", | 53 [KHTTP_200] = "OK", |
53 [KHTTP_400] = "Bad Request", | 54 [KHTTP_400] = "Bad Request", |
55 [KHTTP_401] = "Unauthorized", | |
54 [KHTTP_404] = "Not Found", | 56 [KHTTP_404] = "Not Found", |
55 [KHTTP_500] = "Internal Server Error" | 57 [KHTTP_500] = "Internal Server Error" |
56 }; | 58 }; |
57 | 59 |
58 void | 60 void |