Skip to content

Commit

Permalink
Specify 410 for code when responding as json while self-destruction (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda authored and skerit committed Feb 27, 2024
1 parent 18bcbd5 commit a10831c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def check_self_destruct!

respond_to do |format|
format.any { render 'errors/self_destruct', layout: 'auth', status: 410, formats: [:html] }
format.json { render json: { error: Rack::Utils::HTTP_STATUS_CODES[410] }, status: code }
format.json { render json: { error: Rack::Utils::HTTP_STATUS_CODES[410] }, status: 410 }
end
end

Expand Down

0 comments on commit a10831c

Please sign in to comment.