Replace obsolete HTTP status code :unprocessable_entity
The new naming is :unprocessable_content and required by Rack 3.1+
This commit is contained in:

committed by
Sebastian Serth

parent
4e1e8c0f4d
commit
092487344a
@ -13,7 +13,7 @@ class SubscriptionsController < ApplicationController
|
||||
if @subscription.save
|
||||
format.json { render json: @subscription, status: :created }
|
||||
else
|
||||
format.json { render json: @subscription.errors, status: :unprocessable_entity }
|
||||
format.json { render json: @subscription.errors, status: :unprocessable_content }
|
||||
end
|
||||
end
|
||||
authorize!
|
||||
|
Reference in New Issue
Block a user