4 ms·
> requests coming from JS "need to get a 200" I'm not sure what this is, but it could be some sort of expectation where all responses are expected to get a 200
by _greim_ 12y ago
> requests coming from JS "need to get a 200"
I'm not sure what this is, but it could be some sort of expectation where all responses are expected to get a 200 along with wrappers like this:
{"status":"error","reason":"not found"}
{"status":"success","response":{...}}
And client-side devs using jQuery (for example) correspondingly expect to handle error conditions in the "success" callback instead of the "error" callback.
When someone used to doing things like the above talks to someone more accustomed to RESTish ways of doing things, quite a bit could get lost in translation and communication often completely breaks down.