Skip to content

Apply Responder.error_status to Responder#display_errors method #253

@fschwahn

Description

@fschwahn

See

def display_errors
# TODO: use `error_status` once we switch the default to be `unprocessable_entity`,
# otherwise we'd be changing this behavior here now.
controller.render format => resource_errors, :status => :unprocessable_entity
end

With the deprecation of :unprocessable_entity in favor of :unprocessable_content in rack (see rack/rack#2137) I currently need to overwrite the display_errors-method in my app to work around deprecation warnings.

I think the generated default in responders should be updated to unprocessable_content, and it should be applied everywhere. That's a breaking change, so probably requires a minor or major version bump.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions