An error occur when http response isn't 200
An error occur when http response isn't 200
NickZhang
Posts: 11Questions: 7Answers: 0
Hi , when i sumbit a create /edit request to the server, as the session timeout or permission denies got 403 response code,
the editor just stuck there and got no response, my question is: is there any way to put a hook to handle such special http response code ?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
That depends on how you are sending updates to the server. sample code please.
All that http error detail should be in that error function on line 13. You'll need to do some debugging to see if that line is being called correctly.
Now that I'm at work, I can post a sample. I renamed some of the passed-in parameters because I found the variable names in the examples hard to keep track of.