added purge support, 200 and error code support
bug fixed and changed dict name
used request_uri instead of uri and changed the nginx return code not default to 206
bug fix: pass hostname to subreuest