fix 404 response header and set content type