Help Me!

Greetings! Please tell me, in my answer, namely in Headers Location, there is an answer about a bad result - / login
and the answer about a good result is login / Challenge
… Please tell me how to make the definitions correctly?
For if I do this, then my good result shows as bad

Instead of data.HEADERS write data.HEADERS["Location"].
I also suggest you add a dictionary key before that, with
data.HEADERS ContainsKey Location so if a header with Location value is not present it will not throw any errors!