Allow statusCode to be null