This commit is contained in:
Martin Lensment 2014-08-06 14:44:34 +03:00
parent c838e0f574
commit b6e61f5bda
3 changed files with 11 additions and 25 deletions

View file

@ -60,21 +60,10 @@ module Epp::DomainsHelper
def handle_errors
handle_epp_errors({
'2302' => [:epp_domain_taken, :reserved],
'2306' => [:blank, [:out_of_range, {min: 1, max: 13}]],
'2303' => [:not_found],
'2005' => [:hostname_invalid, :ip_invalid]
}, @domain
)
end
def error_code_map
{
'2302' => ['Domain name already exists', 'Domain name is reserved or restricted'],
'2306' => ['Registrant is missing', 'Nameservers count must be between 1-13', 'Admin contact is missing'],
'2303' => ['Contact was not found'],
'2005' => ['Hostname is invalid', 'IP is invalid']
}
}, @domain)
end
end