The 404 error code should be returned from index.html, not from the templates.
See rimas-kudelis/jobberbase@7e69b36 for the JobberBase changeset.