Replace error.statusCode with error.status