# Delegate the responsibility to respond to the `Action`
handler.prepare_respond_and_close(request, turi, self)
return
- else response = new HttpResponse(405)
- else response = new HttpResponse(405)
+ else response = new HttpResponse(404)
+ else response = new HttpResponse(404)
respond response
close
Params args: i:0123, s:asdf
[Client] curl -s localhost:*****/params_answer/0123 --head
-HTTP/1.0 405 Method Not Allowed\r
+HTTP/1.0 404 Not Found\r
Content-Length: 0\r
Server: nitcorn\r
Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
\r
[Client] curl -s localhost:*****/invalid_route --head
-HTTP/1.0 405 Method Not Allowed\r
+HTTP/1.0 404 Not Found\r
Content-Length: 0\r
Server: nitcorn\r
Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r