Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit bef167b

Browse files
authored
Merge pull request #815 from alphagov/rename-unprocessable-entity
Rename unprocessable_entity to unprocessable_content
2 parents 81546c3 + ee6a0a9 commit bef167b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ def missing_parameter(exception)
6565
end
6666

6767
def invalid_record(resource)
68-
render json: resource.record.errors, status: :unprocessable_entity
68+
render json: resource.record.errors, status: :unprocessable_content
6969
end
7070
end

0 commit comments

Comments
 (0)