diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index dbf64b723..a314faff7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -74,12 +74,12 @@ class ApplicationController < ActionController::Base end def not_authorized - render json: "Error: not authorized", status: :unauthorized + render json: {error: "Error: not authorized"}, status: :unauthorized raise NotAuthorizedError, "Unauthorized" end def bad_request - render json: "Error: Bad Request", status: :bad_request + render json: {error: "Error: Bad Request"}, status: :bad_request end def error_too_many_requests(exc)