clean up 'status' return to client, move to 'errorcode'