Skip to content

Conversation

@Gryzor
Copy link

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

+1

Sign up for freeto 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

@Gryzor@satels