麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 學院 > 開發設計 > 正文

HTTP狀態碼

2019-11-14 15:37:56
字體:
來源:轉載
供稿:網友

HTTP Status Codes
The HTTP Status codes allow a server to communicate the results of PRocessing a client’s request. These
status codes are grouped into the following categories:
•  Informational Codes—Status codes indicating that the server has received the
request but hasn’t completed processing it. These intermediate response codes are
in the 100 series.
•  Success Codes—Status codes indicating that the request has been successfully
received and processed. These codes are in the 200 series.
•  Redirection Codes—Status codes indicating that the request has been processed, but
the client must perform an additional action to complete the request. These actions
typically involve redirecting to a different location to get the resource. These codes
are in the 300 series.
•  Client Error Codes—Status codes indicating that there was an error or a problem
with client’s request. These codes are in the 400 series.
•  Server Error Codes—Status codes indicating that there was an error on the server
while processing the client’s request. These codes are in the 500 series.
The HTTP Status codes play an important role in REST API design as meaningful codes help
communicate the right status, enabling the client to react appropriately. Table 1-2 shows some of the
important status codes into which you typically run.

 

Table 1-2. HTTP status codes and their descriptions
Status Code Description
100 (Continue) Indicates that the server has received the first part of the request and the rest
of the request should be sent.
200 (OK) Indicates that all went well with the request.
201 (Created) Indicates that request was completed and a new resource got created.
202 (Accepted) Indicates that request has been accepted but is still being processed.
204 (No Content) Indicates that the server has completed the request and has no entity body to
send to the client.
301 (Moved Permanently) Indicates that the requested resource has been moved to a new location and
a new URI needs to be used to access the resource.
400 (Bad Request) Indicates that the request is malformed and the server is not able to
understand the request.
401 (Unauthorized) Indicates that the client needs to authenticate before accessing the resource.
If the request already contains client’s credentials, then a 401 indicates
invalid credentials (e.g., bad passWord).
403 (Forbidden) Indicates that the server understood the request but is refusing to fulfill it.
This could be because the resource is being accessed from a blacklisted IP
address or outside the approved time window.
404 (Not Found) Indicates that the resource at the requested URI doesn’t exist.
406 (Not Acceptable) Indicates that the server is capable of processing the request; however, the
generated response may not be acceptable to the client. This happens when
the client becomes too picky with its accept headers.
500 (Internal Server Error) Indicates that there was an error on the server while processing the request
and that the request can’t be completed.
503 (Service Unavailable) Indicates that the request can’t be completed, as the server is overloaded or
going through scheduled maintenance.


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 牛牛a级毛片在线播放 | 国产精品久久久久久久亚洲按摩 | 日韩精品一区二区三区中文 | a免费看 | 国产午夜精品一区二区三区在线观看 | 欧美三级美国一级 | 一区二区久久久久草草 | 午夜视频亚洲 | 毛片在线视频观看 | 国产一级aaa全黄毛片 | 久久综合精品视频 | 久久蜜桃香蕉精品一区二区三区 | 久久欧美亚洲另类专区91大神 | 毛片大全在线观看 | 欧美性生活网站 | 失禁高潮抽搐喷水h | 天堂成人国产精品一区 | 久久国产不卡 | 日日狠狠久久偷偷四色综合免费 | 国产精品99久久99久久久二 | 国产精品久久久久久久久久iiiii | 国产一国产一级毛片视频在线 | 男女羞羞的视频 | 国产一区二区三区网站 | 精品在线观看一区 | 久久中文一区 | 日韩精品hd | 中文字幕在线播放一区 | 又黄又爽免费无遮挡在线观看 | 麻豆自拍偷拍视频 | 黑人一区二区三区四区五区 | av电影院在线观看 | 色a综合| 亚洲一区在线视频观看 | 天天躁狠狠躁夜躁2020挡不住 | 国产午夜精品视频免费不卡69堂 | 国产伦精品一区二区三区 | 成年免费视频黄网站在线观看 | 欧美成人小视频 | 亚洲一区在线免费视频 | 久久久久久久高清 |