When using the sandbox I was not able to get to display the 404 page. I am guessing it's missing something in the upward.yml file. To reproduce open sandbox  change url to something that should be missing and hit enter, observe that the page does not include "Page not found!" 