Passa ai contenuti principali

HTTP Status Codes

può essere utile...

*1xx Codes:* (Information)

This code class indicates a provisional response, consisting only of the Status-Line with optional headers, and is terminated by an empty line.
_Note:_ Since HTTP/1.0 did not define any 1xx status codes, servers MUST NOT send a 1xx response to an HTTP/1.0 client except under experimental conditions.
*100* (Continue):
An interim response telling the browser the initial part of its request has been received and not rejected by the server.
A final response code should be sent when the remainder of the material has been sent.
*101* (Switching Protocols):
The browser may wish to change protocols it's using. If such a request is sent and approved by the server this response is given.

*2xx Codes:* (Success)

The two hundred range is reserved for successful responses. Your log file will show these classes of codes for all successful hits.
*200* (OK):
The request was successful and information was returned. This is, by
far, the most common code returned on the web.
*201* (Created):
If a POST command is issued by a browser (usually in processing a form) then the 201 code is returned if the resource requested to be created was actually created. If there is a delay in creating the resource the response should be 202, but may be 201 and contain a description of when it will be created.
*202* (Accepted):
If a request for processing was sent and accepted but not acted upon and the delay in acting is unknown, then this code should be sent instead of 201.
Note that 202 does not commit to processing the request; it only says the request was accepted.
A pointer to some status monitor for the task is often included with this response so users can check back later.
*203* (Non-Authoritative Usually the preliminary information sent Information):
from a server to a browser comes directly from the server.
If it does not, then this code might also be sent to indicate that information did not come from a known source.
*204* (No New Content):
The request was accepted and filled but no new information is being sent back.
The browser receiving this response should not change its screen display (although new, and changed, private header information may be sent).
*205* (Reset Content):
When you fill in a form and send the data, the server may send this code
telling the browser that the data was received and the action carried out so the browser should now clear the form (or reset the display in some manner).
*206* (Partial Content):
This code indicates the server has only filled part of a specific type of
request.

*3xx Codes:* (Redirection)

The 3xx codes indicate some need for further action by your browser. User action may or may not be necessary to cause this further action to take place; often it will just happen automatically.
There are safeguards built into the specification designed to prevent infinite loops, which can sometimes result from automatic redirection.
*300* (Multiple Choice):
You should not see 300 standing alone; it serves as a template for the following specific codes.
*301* (Moved Permanently):
As the name implies, the addressed resource has moved and all future requests for that resource should be made to a new URL. Sometimes there is an automatic transfer to the new location.
*302* (Moved Temporarily):
The addresses resource has moved, but future requests should continue to come to the original URL.
Sometimes there is an automatic transfer to the new location.
*303* (See Other):
The response to your browser request can be found elsewhere. Automatic redirection may take place to the new location.
*304* (Not Modified):
In order to save bandwidth your browser may make a conditional request for resources.
The conditional request contains an "If-Modified-Since" field and if the resource has not changed since that date the server will simply return the 304 code and the browser will use its cached copy of the resource.
*305* (Use Proxy):
This is notice that a specific proxy server must be used to access the resource. The URL of the proxy should be provided.

*4xx Codes:* (Client Error)

The 4xx codes are the ones you are most likely to actually see; particularly code 404. These codes indicate some sort of error has happened.
*400* (Bad Request):
The server did not understand the request. This is usually cured by resending the request.
*401* (Unauthorized):
The request requires some form of authentication (e.g., user id and/or password) but did not contain it.
Usually, this code results in a box popping up in your browser asking you for the required information. Once you supply it the request is sent again.
*402* (Payment Required):
Reserved for future use.
*403* (Forbidden):
This is a sort of catch-all refusal. If the server understood the request but, for whatever reason, refuses to fill it, a code 403 will often be returned.
The server may or may not explain why it is sending a 403 response.
*404* (Not Found):
If you happen to mistype a URL or enter an old one that no longer exists this is the error you will likely see.
The condition may be temporary or permanent but this information is rarely provided.
Sometimes code 403 is sent in place of 404.
*405* (Method Not Allowed):
Your browser has requested a resource using a procedure not allowed to obtain that resource.
The response should contain allowed procedures.
*406* (Not Acceptable):
Your browser said only certain response types will be accepted and the server says the content requested does not fit those response types.
(This is one way content monitoring can be implemented.)
*407* (Proxy Authentication This code is similar to 401, except that Required):
the browser must first authenticate itself.
*408* (Request Timeout):
Your browser waited too long and the server timed out. A new request must be sent.
*409* (Conflict):
If a site allows users to change resources and two users attempt to change the same resource there is a conflict.
In this, and other such situations, the server may return the 409 code and should also return information necessary to help the user (or browser) resolve the conflict.
*410* (Gone):
Code 410 is more specific than 404 when a resource cannot be found.
If the server knows, for a fact, that the resource is no longer available and no forwarding address is known, then 410 should be returned.
If the server does not have specific information about the resource, then 404 is returned.
*411* (Length Required):
For some processes a server needs to know exactly how long the content is.
If the browser does not supply the proper length code 411 may result.
*412* (Precondition Failed):
A browser can put conditions on a request.
If the server evaluates those conditions and comes up with a false answer, the 412 code may be returned.
*413* (Request Entity Too Large):
If your browser makes a request that is longer than the server can process code 413 may be returned.
Additionally, the server may even close the connection to prevent the request from being resubmitted (this does not mean a phone connection will hang up; just that the browser's link to the site may be terminated and have to be started over again).
*414* (Request-URI Too Long):
You will likely not see this one as it is rare. But, if the resource address you've sent to the browser is too long this code will result.
One of the reasons this code exists is to give the server a response when the server is under attack by someone trying to exploit fixed-length buffers by causing them to overflow.
*415* (Unsupported Media Type):
If your browser makes a request using the wrong format, this code may result.

*5xx Codes:* (Server Error)

The 5xx series of codes indicate cases where the server knows it has made an error or is not capable of answering the request. I.n most cases the server should include some information explaining the error and say if the situation is temporary or permanent.
*500* (Internal Server Error):
An unexpected condition prevented the server from filling the request.
*501* (Not Implemented):
The server is not designed (or does not have the software) to fill the request.
*502* (Bad Gateway):
When a server acts as a go-between it may receive an invalid request.
This code is returned when that happens.
*503* (Service Unavailable):
This code is returned when the server cannot respond due to temporary overloading or maintenance.
Some users, for example, have limited accounts which can only handle so many requests per day or bytes send per period of time.
When the limits are exceeded a 503 code may be returned.
*504* (Gateway Timeout):
A gateway or proxy server timed out without responding.
*505* (HTTP Version Not The browser has requested a specific Supported):
transfer protocol version that is not supported by the server.
The server should return what protocols are supported.


per dettagli:
http://www.w3.org/Protocols/rfc2068/rfc2068
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Commenti

Post popolari in questo blog

jQuery validation message in italiano

Ecco i messaggi in italiano per il plugin Validation di jQuery . http://docs.jquery.com/Plugins/Validation ciao /m /* * Translated default messages for the jQuery validation plugin. * Language: IT */ jQuery.extend(jQuery.validator.messages, { required: "Questo campo è obbligatorio.", remote: "Riempire questo campo per continuare.", email: "Inserire un indirizzo email valido.", url: "Inserire un indirizzo URL valido.", date: "Inserire una data in formato mm-gg-aaaa.", dateDE: "Inserire una data in formato gg-mm-aaaa.", dateISO: "Inserire una data in formato aaaa-mm-gg.", number: "Inserire un numero.", digits: "Inserire (solo) un numero.", creditcard: "Inserire un numero di carta di credito valido.", equalTo: "Inserire lo stesso valore usato sopra.", accept: "Usare un'estensione valida.&q

NetBeans: percorsi e file

Che JDK usa per girare NetBeans ? Scoprilo in: c:\Programmi\NetBeans 6.5\etc\netbeans.conf Dove stanno le Libraries di NetBeans ? In: %HOMEPATH%\.netbeans\6.5\config\org-netbeans-api-project-libraries\Libraries\ Comodo per copiarle da una versione all'altra (quando si provano RC o beta) enjoy /m