REPP: Move domain transfer info to rails API format

This commit is contained in:
Karl Erik Õunapuu 2020-10-14 12:42:15 +03:00
parent 6c655e1179
commit d1ab61f424
No known key found for this signature in database
GPG key ID: C9DD647298A34764
4 changed files with 68 additions and 52 deletions

View file

@ -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