I have a web application written using Racket's web server:
#lang racket
(require web-server/servlet-env)
; Some web app code here ...
;; Start the web server.
(serve/servlet request-handler
#:log-file "/dev/stdout")
When I start the web server and access the web app through the browser, the logs appear like this:
127.0.0.1 - - [25/Dec/2018:12:34:56 +0000] "GET /servlets/standalone.rkt HTTP/1.1" - -
127.0.0.1 - - [25/Dec/2018:12:34:56 +0000] "GET /favicon.ico HTTP/1.1" - -
But where is the HTTP status code? With incomplete logs like this, how will I know if any of the pages resulted in 500, 403, 404, etc.?
How can I make the web server logs show the HTTP status code?
UPDATE: Issue on GitHub.