Save status code to variable

I have been searching for a way to save status code to a session variable with no luck. I suspect is quite simple, but could not figure it out. Can someone please send me a pointer?


CONFIDENTIALITY NOTICE: This email message and any attachments may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies including any attachments.

SparkCognition, Inc. or any of its affiliates may monitor electronic communications sent or received by our networks in order to protect our business and verify compliance with our policies and relevant legal requirements. Any personal information contained or referred to within this electronic communication will be processed in accordance with our privacy standards available at

Thank you! I knew it was simple. Initial I tried“status”), the correct way is just status.saveAs(“status”)