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

HTTP status codes

A huge list of well-defined HTTP status codes exists. This list of commonly used status codes is useful for designing RESTful APIs and leveraging the semantics that are defined for clear communication between producers and consumers.

It is highly recommended to not return a HTTP 200 status for all requests and encode the success or failure of the request in the response body. Keep in mind that there will be a specific HTTP status code for each scenario. Returning the proper status code will indicate the exact behavior that occurred on the server side, which allows the consumer to understand what happened there. There are five high-level HTTP status code classes, as described in the following table:

 

The following sections describe the most commonly used HTTP status codes in detail.

主站蜘蛛池模板: 江都市| 抚松县| 新民市| 临泉县| 建德市| 偏关县| 铁岭县| 麦盖提县| 泽州县| 绥江县| 建湖县| 上思县| 茌平县| 河间市| 会理县| 黄浦区| 连山| 青岛市| 博乐市| 临海市| 杂多县| 鹤岗市| 龙门县| 疏附县| 乾安县| 商河县| 连山| 镇巴县| 碌曲县| 南昌市| 宣恩县| 合江县| 革吉县| 廊坊市| 视频| 油尖旺区| 柳林县| 阜新市| 乳源| 大埔区| 苍梧县|