http-status-codes
When is it appropriate to respond with a HTTP 412 error?
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[详细]
2023-02-18 04:02 分类:问答Parsing JSONP Response in Javascript when 4xx or 5xx Http Error Code is Present
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.[详细]
2023-02-17 13:22 分类:问答What status code should I return for a non AJAX request to an AJAX only URL?
If the URL is requested not using AJAX what开发者_运维问答 status code should be returned? 400?I think 403 Forbidden ist best.[详细]
2023-02-16 13:09 分类:问答404 vs 403 when directory index is missing
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.)[详细]
2023-02-12 18:57 分类:问答What is the proper HTTP response code for request without mandatory fields
Consider simple case where user is deleting a post. This is simple HTTP DELETE/POST request with one mandatory field, post_id.[详细]
2023-02-12 08:05 分类:问答Custom http codes
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[详细]
2023-02-12 03:32 分类:问答http code for partual success / error
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[详细]
2023-02-11 08:36 分类:问答how to handle httpStatuscode correctly
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.[详细]
2023-02-09 12:59 分类:问答How can i get http response code more quickly in java than getResponseCode?
I want to get http response code of over 10000000 web sites. So, I used Http(s)?URLConnection class in java.[详细]
2023-02-06 20:55 分类:问答Suitable HTTP Status Code
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.[详细]
2023-02-06 13:24 分类:问答