Lunski's Clutter

This is a place to put my clutters, no matter you like it or not, welcome here.

0%

HTTP

網頁傳輸狀態碼與操作介紹

HyperText Transfer Protocol status code

1: Message

  • 100 Continue: Server got reqest
  • 101 Switching Protocols: Server response
  • 102 Processing: Server processing
  • 103 Early Hints: Last response hint

2: Success

  • 200 OK: Got request
  • 201 Created: Request implemented
  • 202 Accepted: Server approved request
  • 203 Non-Authoritative Information: Revise request
  • 204 No Content: Nothing needs to response
  • 205 Reset Content: Response is nothing
  • 206 Partial Content: Partial request is finished
  • 207 Multi-Status: XML response
  • 208 Already Reported: DAV member exists
  • 226 IM Used: Reqest accomplished

3: Redirect

  • 300 Multiple Choices: Several ways to response
  • 301 Moved Permanently: Response moved to a new location permanently
  • 302 Found: Moved Temporarily
  • 303 See Other: See another URL for response
  • 304 Not Modified: No need new resources
  • 305 Use Proxy: Must get resource by proxy
  • 306 Switch Proxy: Furthermore proxy
  • 307 Temporary Redirect: Get response by another URL
  • 308 Permanent Redirect: Get response by another URL permanently

4: Error

  • 400 Bad Request: Server can’t response
  • 401 Unauthorized: No certificate
  • 402 Payment Required: Keep status code for future request
  • 403 Forbidden: Refuse to execute request
  • 404 Not Found: Didn’t found resources
  • 405 Method Not Allowed: Inappropriate method
  • 406 Not Acceptable: Incompleted request
  • 407 Proxy Authentication Required
  • 408 Request Timeout
  • 409 Conflict: Request exists
  • 410 Gone: Can’t use resource anymore
  • 411 Length Required: Not found Content-Length
  • 412 Precondition Failed: Need fulfill all requests in header
  • 413 Request Entity Too Large
  • 414 Request-URI Too Long
  • 415 Unsupported Media Type
  • 416 Requested Range Not Satisfiable
  • 417 Expectation Failed
  • 418 I’m a teapot: Easter egg
  • 421 Misdirected Request
  • 422 Unprocessable Entity
  • 423 Locked
  • 424 Failed Dependency
  • 425 Too Early: Prevent Replay attack
  • 426 Upgrade Required
  • 428 Precondition Required
  • 429 Too Many Requests
  • 431 Request Header Fields Too Large
  • 440 Login Time-out
  • 451 Unavailable For Legal Reasons

5: Server Error

  • 500 Internal Server Error
  • 501 Not Implemented: Requedt not suported
  • 502 Bad Gateway
  • 503 Service Unavailable: Server overloading
  • 504 Gateway Timeout
  • 505 HTTP Version Not Supported
  • 506 Variant Also Negotiates: Internal configuration error
  • 507 Insufficient Storage
  • 508 Loop Detected: Server dead lock
  • 510 Not Extended: Request not satisfiable
  • 511 Network Authentication Required

ref1

CRUD, HTTP, SQL

  • Create, POST/PUT, INSERT
  • Read, GET, SELECT
  • Update, PUT/PATCH, UPDATE
  • DELETE, DELETE, DELETE

HTTP Request Methods

  • HEAD // Message body
  • CONNECT // Get two-way connection with proxy server
  • OPTIONS // Return a list of supported HTTP methods
  • TRACE // Debugging

常用

  • Get: 參數查詢
  • Post: 表單提交

ref1,
ref2


如果你覺得這篇文章很棒,請你不吝點讚 (゚∀゚)

Welcome to my other publishing channels