Pass statusCode on error.