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

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.
主站蜘蛛池模板: 绥阳县| 滨海县| 恩施市| 石阡县| 卫辉市| 报价| 渑池县| 珲春市| 皋兰县| 霞浦县| 马关县| 喀喇| 泉州市| 宜丰县| 呈贡县| 敦煌市| 锡林郭勒盟| 敦煌市| 吐鲁番市| 黄山市| 安溪县| 谢通门县| 彰武县| 闸北区| 东光县| 新安县| 长岭县| 临江市| 灌云县| 饶河县| 长海县| 改则县| 上饶市| 鄂托克前旗| 临沭县| 津南区| 万山特区| 台前县| 灵武市| 蓬莱市| 仁布县|