Try out the Response API
Use constants in the header reading state machine