how default server response code for trigger OnAftersaveError handling?
responses status in my servers is 422, but its not working.
Any status code that is >= 400 will trigger onLoadError event.
The order of actions is the next
- parsing server-side response
- if status of response is wrong or data is mailformed, trigger onLoadError event
- if response is valid but contains something like { status: “error” }, the OnAftersaveError event will be triggered