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

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.
主站蜘蛛池模板: 安岳县| 抚松县| 乌什县| 长武县| 开封县| 西华县| 新野县| 明光市| 盐津县| 西畴县| 仙居县| 盘山县| 方城县| 闽清县| 益阳市| 多伦县| 高州市| 莱阳市| 桃源县| 启东市| 新蔡县| 建水县| 正宁县| 大关县| 资兴市| 大安市| 化德县| 南充市| 宜章县| 宁晋县| 民丰县| 卢氏县| 安龙县| 新闻| 克山县| 泸州市| 屏边| 三河市| 邢台市| 龙口市| 南雄市|