Moved to correct way of handing statusCode to Rivet