Friday, May 2, 2014

HTTP Status Codes

I can't always remember all the HTTP status Codes. I'm creating this blog post just to remember what they are. 



1xx: Informational - Request received, continuing process
2xx: Success - The action was successfully received, understood, and accepted
3xx: Redirection - Further action must be taken in order to complete the request
4xx: Client Error - The request contains bad syntax or cannot be fulfilled
5xx: Server Error - The server failed to fulfill an apparently valid request


While many of these are common (404, 200, 403) many are not and hard to remember. This list is modified from the wc3 and the wikipedia.


1xx informational

100
Client should continue with request

101
Server is switching protocols

102
Server has received and is processing the request

103
Resume aborted PUT or POST requests

122
URI is longer than a maximum of 2083 characters

2xx success

200
standard response for successful HTTP requests

201
request has been fulfilled; new resource created

202
Request accepted, processing pending

203
Request processed, information may be from another source

204
Request processed, no content returned

205
Request processed, no content returned, reset document view

206
Partial resource return due to request header

207
XML, can contain multiple separate responses

208
results previously returned

226
request fulfilled, response is instance-manipulations

3xx redirection

300
multiple options for the resource delivered

301
this and all future requests directed to the given URI

302
temporary response to request found via alternative URI

303
permanent response to request found via alternative URI

304
resource has not been modified since last requested

305
content located elsewhere, retrieve from there

306
subsequent requests should use the specified proxy

307
connect again to different URI as provided

308
connect again to a different URI using the same method

4xx client error

400
request cannot be fulfilled due to bad syntax

401
Authentication is possible but has failed

402
Payment required, reserved for future use

403
Server refuses to respond to request

404
Requested resource could not be found

405
Request method not supported by that resource

406
Content not acceptable according to the Accept headers

407
client must first authenticate itself with the proxy

408
server timed out waiting for the request

409
request could not be processed because of conflict

410
resource is no longer available and will not be available again

411
request did not specify the length of its content

412
server does not meet request preconditions

413
request is larger than the server is willing or able to process

414
URI provided was too long for the server to process

415
server does not support media type

416
Client has asked for unprovidable portion of the file

417
Server cannot meet requirements of Expect request-header field

420
Twitter rate limiting

422
Request unable to be followed due to semantic errors

423
Resource that is being accessed is locked

424
Request failed due to failure of a previous request

426
Client should switch to a different protocol

428
origin server requires the request to be conditional

429
user has sent too many requests in a given amount of time

431
server is unwilling to process the request

444
server returns no information and closes the connection

449
request should be retried after performing action

450
Windows Parental Controls blocking access to webpage

451
The server cannot reach the client's mailbox.

499
connection closed by client while HTTP server is processing

5xx server error

500
generic error message

501
server does not recognise method or lacks ability to fulfill

502
server received an invalid response from upstream server

503
server is currently unavailable

504
gateway did not receive response from upstream server

505
server does not support the HTTP protocol version

506
Content negotiation for the request results in a circular reference

507
Server is unable to store the representation

508
Server detected an infinite loop while processing the request

509
Bandwidth limit exceeded

510
Further extensions to the request are required

511
Client needs to authenticate to gain network access

598
network read timeout behind the proxy

599
network connect timeout behind the proxy


No comments:

Post a Comment