Programming

Programming intro
Java

Markup

First webpage guide
HTML
XHTML

Style & Layout

CSS

Browser scripting

Javascript
VBScript
AJAX

Server scripting

PHP
ASP

Making money online

Make money online

HTTP status messages

The status of the transmission of data on the world wide web comes with certain codes which are HTTP status messages. For example, the 404 code means a page cannot be found. HTTP status codes exist to convey the status of transmitted data on the world wide web. HTTP status codes are three characters in length.

A list of HTTP status messages along with the meaning and explanation of each:

HTTP status codes beginning with 1 (Information)

Code Meaning Explanation
100 Continue

Part of a request has been recieved by a web sever. However, as long as it is not rejected, the request should be continued by the client

101 Switching protocols

The server has switched protocols

HTTP status codes beginning with 2 (Success)

Code Meaning Explanation
200 OK

The request has been fulfilled

201 Created

A request has been completed and a new resource has been created

202 Accepted

The processing of a request that has been accepted for processing is not yet complete

203 Partial information

If this status code is received in response to a GET command it means that meta information that has been returned is not part of a definitive set.

204 No content

A request has been received, though there is no information to send back

205 Reset content

A request has been fulfilled and now the document view which sent the request should be reset

206 Partial content

There was a GET request for content, but only part of the content was sent

HTTP status codes beginning with 3 (Redirection)

Code Meaning Explanation
300 Multiple choices

A resource has been requested that corresponds to several representations. The user can than select which representation represents the requested resource.

301 Moved permanently

A requested page or resource has been moved to a new URL

302 Found

A requested page or resource has been temporarily moved to a new URL

303 See other

A requested page or resource can be found under another URL

304 Not modified

Access is allowed for a GET request, although the document has not been modified

305 Use proxy

A proxy should be used to access a requested resource

306 Unused

The 306 status code has been used in a previous version of HTTP. While it is no longer used, it is reserved

307 Temporary rediret

A requested page or resource has been temporarily moved to a new URL

HTTP status codes beginning with 4 (Error)

Code Meaning Explanation
400 Bad request

A request was not understood by the web server

401 Unauthorized

A requested page or resource requires verification (user name and password) to access it

402 Payment required

This status code is reserved for future use

403 Forbidden

A requested page or resource is forbidden from access

404 Not found

The requested page or resource cannot be found

405 Method not allowed

There was a method specified in the request which is not allowed

406 Not acceptable

The server generated a particular response that is not accepted by the client

407 Proxy authentication required

Before a request can be processed and the content served, authentication with a proxy server must occur

408 Request timeout

A request took to long for the server to wait and therefore it was not processed

409 Conflict

There was a conflict and therefore a request could not be completed

410 Gone

There was a method specified in the request which is not allowed

411 Length required

"Content-Length" was not defined and the server will not accept any requests without it

412 Precondition failed

The server evaluated a precondition that was given in a request as false

413 Request entity too large

A request will not be accepted by the server since the request entity is too large

414 Request URL too long

The URL of a request is too long and will therefore not be accepted by the server. This could happen when a "post" request" is converted to a "get" request using query information that is too long

415 Unsupported media type

The server will not accept a request since a certain media type is not supported

416 Request range not satisfiable

None of the range specific values in a request-header field overlap the current request header field

417 Expectation failed

The server was not able to meet an expectation given in a request-header field

HTTP status codes beginning with 5 (Server error)

Code Meaning Explanation
500 Internal server error

An unexpected condition was met by the server so a request could not be completed

501 Not implements

The functionality required for a request was not supported by the server and the request could not be completed

502 Bad gateway

An invalid response was sent from the upstream server to the server and therefore the request could not be completed

503 Service unavailable

The server is temporarily overloading or down so a request could not be completed

504 Gateway timeout

The gateway timed out

505 HTTP version not supported

The version of the HTTP protocol being used is not supported by the server

Reference
HTML/XHTML
CSS
Javascript
AJAX

Practice

Online code editor
Step-by-step tutorials
Practical examples
Practical exercises

Reference

Terms glossary

Rate this site

Rate this site
Visitor comments