Add StatusCode and generate StatusCode.