mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Make unacceptable actually return a 422 status code, since it returns the 422.html page
This commit is contained in:
committed by
Oliver Günther
parent
5dfee77e47
commit
ce5fa0597f
@@ -10,9 +10,10 @@ class ErrorsController < ApplicationController
|
||||
render_404
|
||||
end
|
||||
|
||||
# this may be called on CSRF validation failure
|
||||
def unacceptable
|
||||
render file: "#{Rails.public_path.join('422.html')}",
|
||||
status: :not_acceptable,
|
||||
status: :unprocessable_entity,
|
||||
layout: false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user