Harden response URI handling