Respond with JSON on 404.