HTTP

To help with writing request handlers, the standard HTTP status codes are available in the HTTP global object.

Constant name Value
HTTP.CONTINUE 100
HTTP.SWITCHING_PROTOCOLS 101
HTTP.OK 200
HTTP.CREATED 201
HTTP.ACCEPTED 202
HTTP.NON_AUTHORITATIVE_INFORMATION 203
HTTP.NO_CONTENT 204
HTTP.RESET_CONTENT 205
HTTP.PARTIAL_CONTENT 206
HTTP.MULTIPLE_CHOICES 300
HTTP.MOVED_PERMANENTLY 301
HTTP.FOUND 302
HTTP.SEE_OTHER 303
HTTP.NOT_MODIFIED 304
HTTP.USE_PROXY 305
HTTP.TEMPORARY_REDIRECT 307
HTTP.BAD_REQUEST 400
HTTP.UNAUTHORIZED 401
HTTP.PAYMENT_REQUIRED 402
HTTP.FORBIDDEN 403
HTTP.NOT_FOUND 404
HTTP.METHOD_NOT_ALLOWED 405
HTTP.NOT_ACCEPTABLE 406
HTTP.PROXY_AUTHENTICATION_REQUIRED 407
HTTP.REQUEST_TIMEOUT 408
HTTP.CONFLICT 409
HTTP.GONE 410
HTTP.LENGTH_REQUIRED 411
HTTP.PRECONDITION_FAILED 412
HTTP.REQUEST_ENTITY_TOO_LARGE 413
HTTP.REQUEST_URI_TOO_LONG 414
HTTP.UNSUPPORTED_MEDIA_TYPE 415
HTTP.REQUESTED_RANGE_NOT_SATISFIABLE 416
HTTP.EXPECTATION_FAILED 417
HTTP.INTERNAL_SERVER_ERROR 500
HTTP.NOT_IMPLEMENTED 501
HTTP.BAD_GATEWAY 502
HTTP.SERVICE_UNAVAILABLE 503
HTTP.GATEWAY_TIMEOUT 504
HTTP.HTTP_VERSION_NOT_SUPPORTED 505