Pass useful globals to HTTP 404 code