in reply to HTTP status codes

You can set the max_redirect property in the LWP::UserAgent constructor to 0, then the 302 will be reported as status code.