add Net::Rest::Generic::Error with basic method