简单反馈
Last updated
2023-07-11 17:02:53
{"value":"\u7b80\u5355\u53cd\u9988\u662f\u6700\u76f4\u63a5\u7684 HTTP \u54cd\u5e94\u65b9\u5f0f\u3002\u5ba2\u6237\u7aef\u53d1\u8d77\u4e00\u6b21\u4e0a\u4f20\u8bf7\u6c42\uff0c\u7136\u540e\u7b49\u5f85\u670d\u52a1\u7aef\u8fd4\u56de\u7ed3\u679c\u3002\u670d\u52a1\u7aef\u5728\u5904\u7406\u5b8c\u8fd9\u6b21\u4e0a\u4f20\u8bf7\u6c42\u540e\uff0c\u5c06\u5904\u7406\u7ed3\u679c\u4ee5 HTTP \u54cd\u5e94\u7684\u65b9\u5f0f\u53cd\u9988\u7ed9\u5ba2\u6237\u7aef\u3002\n\n\u5982\u679c\u8d44\u6e90\u4e0a\u4f20\u6210\u529f\uff0c\u670d\u52a1\u7aef\u4f1a\u54cd\u5e94 HTTP 200 \u8fd4\u56de\u7801\uff0c\u4e14\u5728\u54cd\u5e94\u5185\u5bb9\u4e2d\u5305\u542b\u4e24\u4e2a\u5b57\u6bb5\uff1a\n\n- hash\uff1a\u5df2\u4e0a\u4f20\u8d44\u6e90\u7684\u6821\u9a8c\u7801\uff0c\u4f9b\u7528\u6237\u6838\u5bf9\u4f7f\u7528\u3002\n- key\uff1a\u76ee\u6807\u8d44\u6e90\u7684\u6700\u7ec8\u540d\u5b57\uff0c\u53ef\u7531\u79c1\u6709\u4e91\u5b58\u50a8\u81ea\u52a8\u547d\u540d\u3002\n\n\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5178\u578b\u7684\u4e0a\u4f20\u6210\u529f\u54cd\u5e94\uff1a\n\n```\nHTTP\/1.1 200 OK\n\nContent-Type: application\/json\nCache-Control: no-store\n\n{\n\n \"hash\": \"Fh8xVqod2MQ1mocfI4S4KpRL6D98\",\n \"key\": \"gogopher.jpg\",\n}\n```\n\n\u5982\u679c\u8d44\u6e90\u4e0a\u4f20\u5931\u8d25\uff0c\u670d\u52a1\u7aef\u4f1a\u53cd\u9988\u76f8\u5e94\u7684\u9519\u8bef\u4fe1\u606f\u3002\u4f8b\u5982 HTTP 401 \u4ee3\u8868\u9a8c\u8bc1\u5931\u8d25\uff0c\u6b64\u65f6\u54cd\u5e94\u5185\u5bb9\u4e2d\u4f1a\u5305\u542b\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u4e3a JSON \u683c\u5f0f\uff1a{\"error\":\"<reason>\"}\u3002\n\n\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5178\u578b\u7684\u4e0a\u4f20\u5931\u8d25\u54cd\u5e94\uff1a\n\n```\nHTTP\/1.1 400 Bad Request\nDate: Mon, 05 Aug 2013 13:56:34 GMT\nServer: nginx\/1.0.14\nContent-Type: application\/json\nAccess-Control-Allow-Origin: *\nContent-Length: 28\nX-Log: MC;SBD:10;RBD:11;BDT:12;FOPD\/400;FOPG:63\/400;IO:109\/400\nX-Reqid: -RIAAIAI8UjcgRcT\nX-Via: 1.1 jssq179:8080 (Cdn Cache Server V2.0), 1.1 jsyc96:9080 (Cdn Cache Server V2.0)\nConnection: close\n{\n\n \"error\":\"invalid argument\"\n}\n```\n\n\u8fd9\u4e9b\u8fd4\u56de\u7684\u9519\u8bef\u4fe1\u606f\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5206\u6790\u95ee\u9898\u539f\u56e0\u3002\u5b8c\u6574\u7684\u8fd4\u56de\u7801\u4fe1\u606f\u8bf7\u53c2\u8003\u9519\u8bef\u7801\u5217\u8868]\u3002\n\n\u4ece\u4e0a\u9762\u7684\u9519\u8bef\u793a\u4f8b\u4e2d\u53ef\u4ee5\u770b\u5230\uff0c\u54cd\u5e94\u5934\u4e2d\u8fd8\u5305\u542b\u4e86\u4e00\u4e9b\u4ee5`X-`\u4e3a\u524d\u7f00\u7684\u6269\u5c55\u5b57\u6bb5\uff0c\u5982\uff1aX-Reqid \u548c X-Log \u7b49\u3002\u8fd9\u4e9b\u6269\u5c55\u4fe1\u606f\u975e\u5e38\u6709\u52a9\u4e8e\u5b9a\u4f4d\u95ee\u9898\u3002\u6211\u4eec\u5efa\u8bae\u5f00\u53d1\u8005\u5c06\u6240\u6709\u63a5\u6536\u5230\u7684\u9519\u8bef\u4fe1\u606f\u5199\u5230\u65e5\u5fd7\u4e2d\uff0c\u4ee5\u4fbf\u4e8e\u6211\u4eec\u7684\u6280\u672f\u652f\u6301\u4eba\u5458\u5728\u534f\u52a9\u5206\u6790\u95ee\u9898\u65f6\u6709\u8db3\u591f\u8be6\u7ec6\u7684\u7ebf\u7d22\u3002"}