Added ability to set an error code on the context in the event of failure