Skip to content

400 errors shouldn't prevent normal transformation #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Gryzor
Copy link

@Gryzor Gryzor commented Jan 31, 2014

This is up to the client to decide.

REST clients pass 4xx errors to inform certain bad requests and you’re supposed to retry those requests after you make some changes (otherwise it will fail again).

In practice, the 4xx error will come with some data too, like some custom response indicating error codes among any other imaginable thing. If you treat 400 as a regular error, then that response is never going to pass through the transform(url, type, encoding, data, status); method in AbstractAjaxCallback.java

Martin Marconcini added 3 commits January 31, 2014 15:20
… the client to decide, otherwise REST clients passing 4xx errors (that are supposed to be retried with some change according to the documentation, lose the possible custom response because the transformation is never performed.
@satels
Copy link

satels commented Dec 2, 2014

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants