mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Return correct error code when adding invalid status
This commit is contained in:
parent
3f4f7ac513
commit
aa56fa3160
2 changed files with 14 additions and 1 deletions
|
@ -133,7 +133,7 @@ class Domain < ActiveRecord::Base
|
|||
end
|
||||
|
||||
unless DomainStatus::STATUSES.include?(x[:value])
|
||||
add_epp_error('2302', 'status', x[:value], [:domain_statuses, :not_found])
|
||||
add_epp_error('2303', 'status', x[:value], [:domain_statuses, :not_found])
|
||||
next
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue