Add 404 for JSON requests.