Back on using the code instead, apparently the real request object doesnt have the "status" variable.