The get_response method of Net::HTTP maybe: http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html#M000033 The doc says it returns a Net::HTTPResponse object, which has the HTTP result code in the attribute 'code'. -m On 6/30/05, Gene Tani <gene.tani / gmail.com> wrote: > I was looking for somehting to trap 404-type errors, kind of like > Mertz' code (but in ruby): > > http://gnosis.cx/TPiP/069.code > > does this sound familiar to anybody? > > >