From e5b326b5130462556476d082e03dd85f90e7411f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 27 Aug 2026 05:42:02 -1000 Subject: Use standard HTTP reason phrases --- source/ui-stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/ui-stats.c') diff --git a/source/ui-stats.c b/source/ui-stats.c index 182cc06..0ce5ef7 100644 --- a/source/ui-stats.c +++ b/source/ui-stats.c @@ -608,12 +608,12 @@ void cgit_show_stats(void) period_index = cgit_find_stats_period(code, &period); if (!period_index) { - cgit_print_error_page(404, "Not found", + cgit_print_error_page(404, "Not Found", "Unknown statistics type: %c", code[0]); return; } if (ctx.repo->max_stats && period_index > ctx.repo->max_stats) { - cgit_print_error_page(400, "Bad request", + cgit_print_error_page(400, "Bad Request", "Statistics type disabled: %s", period->name); return; } -- cgit v2.8.0