mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 23:16:23 +02:00
added response for wrong epp path
This commit is contained in:
parent
5b8b18f584
commit
4cf7a103c8
9 changed files with 91 additions and 28 deletions
|
@ -17,6 +17,7 @@ module Epp
|
|||
required_parameter_missing: 2003,
|
||||
parameter_value_range_error: 2004,
|
||||
parameter_value_syntax_error: 2005,
|
||||
wrong_schema: 2100,
|
||||
unimplemented: 2101,
|
||||
billing_failure: 2104,
|
||||
object_is_not_eligible_for_renewal: 2105,
|
||||
|
@ -47,6 +48,7 @@ module Epp
|
|||
2003 => 'Required parameter missing',
|
||||
2004 => 'Parameter value range error',
|
||||
2005 => 'Parameter value syntax error',
|
||||
2100 => 'Wrong schema',
|
||||
2101 => 'Unimplemented command',
|
||||
2104 => 'Billing failure',
|
||||
2105 => 'Object is not eligible for renewal',
|
||||
|
@ -79,6 +81,7 @@ module Epp
|
|||
def initialize(value)
|
||||
value = value.to_i
|
||||
raise ArgumentError, "Invalid value: #{value}" unless KEY_TO_VALUE.value?(value)
|
||||
|
||||
@value = value
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue