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

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.
主站蜘蛛池模板: 石河子市| 织金县| 曲阳县| 政和县| 庆阳市| 遂川县| 永宁县| 奉贤区| 镇平县| 巫溪县| 湟源县| 开阳县| 任丘市| 丹东市| 连云港市| 建始县| 犍为县| 格尔木市| 金秀| 彩票| 丹凤县| 呼伦贝尔市| 遂川县| 临海市| 阜南县| 木兰县| 新兴县| 德州市| 阜阳市| 景洪市| 德昌县| 黄山市| 安康市| 新化县| 霍林郭勒市| 辽源市| 凤山市| 张家界市| 手机| 沁阳市| 阿克|