This is what I need you to take a closer look at, from line 66 to 84 (you know mongoUpdateContext in detail ...).
This is where I examine the output of mongoUpdateContext to understand how I should fill statusCode whose 'render' is the output of this function.
The same goes for PUT.