官术网_书友最值得收藏!

4xx family (client error)

These are the standard error status codes which the client needs to interpret and handle further actions. These have nothing to do with the server. A wrong request format or ill-formed REST method can cause these errors. Of these, the most frequent status codes API developers use are 400, 401, 403, 404, and 405:

  • 400 (Bad Request) is returned when the server cannot understand the client request.
  • 401 (Unauthorized) is returned when the client is not sending the authorization information in the header.
  • 403 (Forbidden) is returned when the client has no access to a certain type of resources.
  • 404 (Not Found) is returned when the client request is on a resource that is nonexisting.
  • 405 (Method Not Allowed) is returned if the server bans a few methods on resources. GET and HEAD are exceptions.
主站蜘蛛池模板: 肥城市| 昆明市| 湟源县| 沅江市| 中西区| 怀安县| 衢州市| 开封县| 桦南县| 海宁市| 年辖:市辖区| 延川县| 巢湖市| 门头沟区| 大庆市| 锡林郭勒盟| 连城县| 家居| 东城区| 容城县| 韶山市| 公主岭市| 天祝| 施秉县| 紫金县| 电白县| 太湖县| 日喀则市| 肃北| 清丰县| 土默特左旗| SHOW| 彝良县| 合肥市| 汕尾市| 宝坻区| 兖州市| 安康市| 河津市| 广饶县| 石阡县|