Reference (NodeJS) implementation of the state machine described by HTTP decision diagram v4.