add bi-directional status conversion

Almost identical functionality to node HTTP default module