Top "Http-status-codes" questions

HTTP status codes are a set of standardized codes returned in an HTTP web response.

How to get HTTP response code for a URL in Java?

Please tell me the steps or code to get the response code of a particlular URL.

java http http-status-codes
What's an appropriate HTTP status code to return by a REST API service for a validation failure?

I'm currently returning 401 Unauthorized whenever I encounter a validation failure in my Django/Piston based REST API application. Having had …

validation rest http-status-codes
How to specify HTTP error code?

I have tried: app.get('/', function(req, res, next) { var e = new Error('error message'); e.status = 400; next(…

node.js express http-status-codes
Should a 502 HTTP status code be used if a proxy receives no response at all?

According to the RFC: 10.5.3 502 Bad Gateway The server, while acting as a gateway or proxy, received an invalid response from …

http client http-status-codes status
What is the difference between HTTP status code 200 (cache) vs status code 304?

I'm using the Google "Page Speed" plug-in for Firefox to access my web site. Some of the components on my …

http caching httpwebrequest http-status-codes cache-control
How do I get the HTTP status code with jQuery?

I want to check if a page returns the status code 401. Is this possible? Here is my try, but it …

jquery ajax xmlhttprequest http-status-codes http-status-code-401
Why is AJAX returning HTTP status code 0?

For some reason, while using AJAX (with my dashcode developed application) the browser just stops uploading and returns status codes …

ajax http-status-codes
Create request with POST, which response codes 200 or 201 and content

Suppose I write a REST service whose intent is to add a new data item to a system. I plan …

rest content-type http-status-codes
Throw HttpResponseException or return Request.CreateErrorResponse?

After reviewing an article Exception Handling in ASP.NET Web API I am a bit confused as to when to …

c# exception-handling asp.net-web-api http-status-codes