I think I get it now. The argument name is status_code, but what gets into the function is arguments.status instead of arguments.status_code. Right?
If so, you should check where the function is called with the argument status_code. There might be a space between status and _code. In any case, at the point where the function is called, retype the name status_code, just to be sure.