Similar to our Hello World example, we'll respond to any other requests with a 404 Not Found response:
const notfoundpage = HTTP.HandlerFunction() do req HTTP.Messages.Response(404, "Sorry, this can't be found") end
Similar to our Hello World example, we'll respond to any other requests with a 404 Not Found response:
const notfoundpage = HTTP.HandlerFunction() do req HTTP.Messages.Response(404, "Sorry, this can't be found") end