draft: handling 404s and 500s