in reply to catch errors using Mechanize

You can also check $mech->status to get the status code. Anything other than a 200 is an error of some sort.