mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
REPP: Move domain transfer info to rails API format
This commit is contained in:
parent
6c655e1179
commit
d1ab61f424
4 changed files with 68 additions and 52 deletions
|
@ -50,10 +50,10 @@ module Repp
|
|||
end
|
||||
end
|
||||
|
||||
def render_epp_error
|
||||
def render_epp_error(status = :bad_request)
|
||||
render(
|
||||
json: { code: @epp_errors[0][:code], message: @epp_errors[0][:msg] },
|
||||
status: :bad_request
|
||||
status: status
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue