Make exception support more generic

Support Net::HTTPFatalError and others that require an additional
argument.