It is unclear to me when you should and should not return a HTTP 412: Precondition Failed, error for a web service?I am thinking of using it when validating data.For example, if a client POST\'s XML d
I am implementing an application which relies upon communication between a JavaScript client and a server which knows how to respond to the client using JSONP notation.
If the URL is requested not using AJAX what开发者_运维问答 status code should be returned? 400?I think 403 Forbidden ist best.
This is mostly a philosophical question about the best way to interpret the HTTP spec. Should a directory with no directory index (e.g. index.html) return 404 or 403? (403 is the default in Apache.)
Consider simple case where user is deleting a post. This is simple HTTP DELETE/POST request with one mandatory field, post_id.
Could I use custom HTTP codes? I want to use these codes as response for AJAX requests. Example: 220 - will be correspond to status that some item was created successfully
I have a service that takes a list of items to handle. Each of the it开发者_开发百科ems is handeled one at the time in the backend, when all items is done the service returns a document containing th
I would like to开发者_开发百科 react on http status-codes (like 200, 201 or 202) with the new feature (http://api.jquery.com/jQuery.ajax). But the function is ignoring my 201 and 202 callbacks.
I want to get http response code of over 10000000 web sites. So, I used Http(s)?URLConnection class in java.
My web application uses ajax and i check request is ajax request or not via php codes. If not then i generate 404 error otherwise run p开发者_如何学JAVAhp codes that associated ajax function.