When you look at the HTTP module for node. JS today, you see the most comprehensive introduction to HTTP request mode and response status code.
HTTP request Method:
METHODS: [ ' ACL ', ' BIND ', ' CHECKOUT ', ' CONNECT ', ' COPY ', ' DELETE ', ' GET ', ' HEAD ', ' LINK ', ' LOCK ', ' M-search ', ' MERGE ', ' mkactivity ', ' Mkcalendar ', ' mkcol ', ' MOVE ', ' NOTIFY ', ' OPTIONS ', ' PATCH ' , ' POST ', ' PROPFIND ', ' PROPPATCH ', ' PURGE ', ' PUT ', ' REBIND ', ' report ', ' SEARCH ', ' SUBSCRIBE ', ' TRACE ', ' UNBIND ', ' UNLINK ', ' UNLOCK ', ' unsubscribe ' ],
HTTP Status Response code
status_codes: { ': ' Continue ', ' 101 ': ' Switching protocols ', ' 102 ': ' processing ', ': ' OK ', ' 201 ': ' Created ', ' 202 ' : ' Accepted ', ' 203 ': ' non-authoritative information ', ' 204 ': ' no content ', ' 205 ': ' reset content ' , ' 206 ': ' partial content ', ' 207 ': ' Multi-Status ', ' 208 ': ' already reported ', ' 226 ': ' im used ', ': ' multiple choices ', ' 301 ': ' moved permanently ', ' 302 ': ' Found ', &nbSP; ' 303 ': ' see other ', ' 304 ': ' not modified ', ' 305 ': ' use proxy ', ' 307 ': ' Temporary redirect ', ' 308 ': ' permanent redirect ', ': ' Bad request ', ' 401 ': ' Unauthorized ', ' 402 ': ' payment required ', ' 403 ': ' Forbidden ', ' 404 ': ' not found ', ' 405 ': ' method not allowed ', ' 406 ': ' not acceptable ', ' 407 ': ' Proxy authentication required ', ' 408 ': ' Request Timeout ', ' 409 ': ' Conflict ', ' 410 ': ' Gone ', &nBSP; ' 411 ': ' length required ', ' 412 ': ' precondition failed ', ' 413 ': ' payload too large ', ' 414 ': ' Uri too long ', ' 415 ': ' Unsupported media type ', ' 416 ': ' range not satisfiable ', ' 417 ': ' expectation failed ', ' 418 ': ' i\ ' M a teapot ', ' 421 ': ' misdirected request ', ' 422 ': ' Unprocessable entity ', ' 423 ': ' Locked ', ' 424 ': ' failed dependency ', ' 425 ': ' unordered collection ', ' 426 ': ' upgrade required ', ' 428 ': ' Precondition required ', ' 429 ': ' too many requests ', ' 431 ': ' Request header fields too large ', ' 451 ': ' Unavailable for legal reasons ', ': ' Internal Server error ', ' 501 ': ' not implemented ', ' 502 ': ' bad gateway ', ' 503 ': ' service unavailable ', ' 504 ': ' gateway timeout ', ' 505 ': ' HTTP version not supported ', ' 506 ': ' Variant Also Negotiates ', ' 507 ': ' insufficient storage ', ' 508 ': ' loop detected ', ' 509 ': ' bandwidth limit Exceeded ', '510 ': ' not extended ', ' 511 ': ' network authentication Required ' },
Small friends, quickly collect it.
This article is from the "My PHP path" blog, so be sure to keep this source http://phpme.blog.51cto.com/663593/1894011
Interview Essentials: The most complete HTTP status code and request method in history