Forgive me if this is touched upon later in the book (or in a chapter that hasn’t been included yet), I just started reading it about 10 minutes ago Screenshot below of what I did.
By force of habit (with other projects), I generally use curl -I
to verify my work in the terminal before opening a browser to verify things are working as they should. Expecting a 200
or even a 301
, I instead got a 404
. Figuring that I did something wrong, I scratched everything and started over again, only to once again get a 404
from the command line. Luckily, I then decided to verify the route in Chrome and received the expected Hello, world!
Is a 404
header expected behavior on a route, especially if only the headers are requested?