Add statusCode to generated file