diff --git a/app/controllers/translates_controller.rb b/app/controllers/translates_controller.rb index 4be72b9..c42704a 100644 --- a/app/controllers/translates_controller.rb +++ b/app/controllers/translates_controller.rb @@ -70,6 +70,6 @@ def create @response_info[:success] = false unless @md_return[:readerExecutionPass] @response_info[:success] = false unless @md_return[:writerPass] - render json: @response_info + render json: @response_info, status: @response_info[:success] ? 200 : 422 end end