Change EPP response code according to its specification

Fixes #587
This commit is contained in:
Artur Beljajev 2019-09-13 21:06:23 +03:00 committed by Alex Sherman
parent 744d6a2b53
commit daeb00ebe7
4 changed files with 7 additions and 3 deletions

View file

@ -30,6 +30,7 @@ module Epp
data_management_policy_violation: 2308,
command_failed: 2400,
authentication_error_server_closing_connection: 2501,
session_limit_exceeded_server_closing_connection: 2502,
}.freeze
private_constant :KEY_TO_VALUE
@ -59,6 +60,7 @@ module Epp
2308 => 'Data management policy violation',
2400 => 'Command failed',
2501 => 'Authentication error; server closing connection',
2502 => 'Session limit exceeded; server closing connection',
}.freeze
private_constant :DEFAULT_DESCRIPTIONS