Add error code for context param.