{"id":78498,"date":"2024-01-12T19:36:30","date_gmt":"2024-01-12T11:36:30","guid":{"rendered":"\/\/www.viralrail.com\/?p=78498"},"modified":"2024-01-12T19:36:30","modified_gmt":"2024-01-12T11:36:30","slug":"ljxydsl","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/78498.html","title":{"rendered":"\u4e86\u89e3422\u534f\u8bae\u7684\u5b9e\u4f8b"},"content":{"rendered":"
422\u534f\u8bae\uff0c\u4e5f\u79f0\u4e3a422 Unprocessable Entity\uff0c\u662f\u4e00\u79cdHTTP\u72b6\u6001\u7801\u3002\u4eca\u5929\u6211\u4eec\u5c06\u4ecb\u7ecd422\u534f\u8bae\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u4ee5\u53ca\u4e0e\u5176\u76f8\u5173\u7684\u5b9e\u4f8b\uff0c\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e00\u534f\u8bae\u3002<\/p>\n
422 Unprocessable Entity\u8868\u793a\u670d\u52a1\u5668\u7406\u89e3\u5b9e\u4f53\u7684\u5185\u5bb9\u7c7b\u578b\uff0c\u4f46\u65e0\u6cd5\u5904\u7406\u8bf7\u6c42\u7684\u5b9e\u4f53\u3002\u8fd9\u610f\u5473\u7740\u670d\u52a1\u5668\u7406\u89e3\u4e86\u8bf7\u6c42\uff0c\u4f46\u662f\u65e0\u6cd5\u5904\u7406\u5176\u4e2d\u5305\u542b\u7684\u8bed\u6cd5\u9519\u8bef\u6216\u5176\u4ed6\u683c\u5f0f\u9519\u8bef\u3002\u8fd9\u4e00\u72b6\u6001\u7801\u7684\u51fa\u73b0\u80fd\u591f\u5e2e\u52a9\u5ba2\u6237\u7aef\u68c0\u6d4b\u548c\u8c03\u8bd5\u95ee\u9898\uff0c\u4ece\u800c\u66f4\u597d\u5730\u5904\u7406\u9519\u8bef\u60c5\u51b5\u3002<\/p>\n
422\u534f\u8bae\u901a\u5e38\u7528\u4e8eREST API\u7684\u8bf7\u6c42\u54cd\u5e94\u8fc7\u7a0b\u4e2d\uff0c\u5f53\u5ba2\u6237\u7aef\u63d0\u4ea4\u7684\u6570\u636e\u65e0\u6cd5\u88ab\u670d\u52a1\u5668\u5904\u7406\u65f6\uff0c\u4f1a\u8fd4\u56de422\u72b6\u6001\u7801\u3002\u4f8b\u5982\uff0c\u5f53\u7528\u6237\u63d0\u4ea4\u7684\u8868\u5355\u6570\u636e\u7f3a\u5c11\u5fc5\u586b\u5b57\u6bb5\u6216\u683c\u5f0f\u9519\u8bef\u65f6\uff0c\u670d\u52a1\u5668\u53ef\u4ee5\u8fd4\u56de422\u72b6\u6001\u7801\uff0c\u5e76\u643a\u5e26\u9519\u8bef\u8be6\u60c5\uff0c\u5e2e\u52a9\u5ba2\u6237\u7aef\u5b9a\u4f4d\u95ee\u9898\u3002<\/p>\n
\u5047\u8bbe\u4e00\u4e2a\u7f51\u7ad9\u7684\u6ce8\u518c\u9875\u9762\u8981\u6c42\u7528\u6237\u63d0\u4f9b\u90ae\u7bb1\u5730\u5740\u548c\u5bc6\u7801\u8fdb\u884c\u6ce8\u518c\u3002\u7528\u6237\u5728\u63d0\u4ea4\u6ce8\u518c\u8868\u5355\u65f6\uff0c\u5982\u679c\u672a\u586b\u5199\u90ae\u7bb1\u5730\u5740\u6216\u8005\u5bc6\u7801\u683c\u5f0f\u4e0d\u7b26\u5408\u8981\u6c42\uff0c\u670d\u52a1\u5668\u5c06\u8fd4\u56de422\u72b6\u6001\u7801\uff0c\u5e76\u9644\u5e26\u9519\u8bef\u4fe1\u606f\uff0c\u63d0\u793a\u7528\u6237\u9700\u8981\u586b\u5199\u5b8c\u6574\u7684\u90ae\u7bb1\u5730\u5740\u6216\u8005\u5bc6\u7801\u683c\u5f0f\u4e0d\u6b63\u786e\u3002<\/p>\n
\u5728\u4f7f\u7528422\u534f\u8bae\u65f6\uff0c\u6709\u51e0\u70b9\u6700\u4f73\u5b9e\u8df5\u9700\u8981\u6ce8\u610f\u3002\u9996\u5148\u662f\u63d0\u4f9b\u6e05\u6670\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u8ba9\u5ba2\u6237\u7aef\u80fd\u591f\u51c6\u786e\u7406\u89e3\u95ee\u9898\u6240\u5728\u3002\u5176\u6b21\u662f\u7ed3\u5408422\u72b6\u6001\u7801\u548c\u9002\u5f53\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5feb\u5730\u5b9a\u4f4d\u548c\u89e3\u51b3\u95ee\u9898\u3002\u6700\u540e\uff0c\u8003\u8651\u5c06422\u72b6\u6001\u7801\u4e0e\u9002\u5f53\u7684\u91cd\u8bd5\u7b56\u7565\u7ed3\u5408\uff0c\u63d0\u4f9b\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n
\u9519\u8bef\u4fe1\u606f\u5e94\u5f53\u51c6\u786e\u5730\u6307\u51fa\u5ba2\u6237\u7aef\u8bf7\u6c42\u4e2d\u5b58\u5728\u7684\u95ee\u9898\uff0c\u6bd4\u5982\u5177\u4f53\u7f3a\u5931\u7684\u5b57\u6bb5\u6216\u4e0d\u7b26\u5408\u7684\u6570\u636e\u683c\u5f0f\u3002\u8fd9\u6709\u52a9\u4e8e\u5ba2\u6237\u7aef\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\u5e76\u8fdb\u884c\u4fee\u6b63\u3002<\/p>\n
422\u72b6\u6001\u7801\u5e94\u5f53\u4e0e\u5177\u4f53\u7684\u9519\u8bef\u4fe1\u606f\u7ed3\u5408\u4f7f\u7528\uff0c\u8fd9\u6837\u80fd\u591f\u66f4\u597d\u5730\u5e2e\u52a9\u5f00\u53d1\u8005\u7406\u89e3\u548c\u5904\u7406\u8bf7\u6c42\u5931\u8d25\u7684\u60c5\u51b5\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n
\u5728\u8fd4\u56de422\u72b6\u6001\u7801\u65f6\uff0c\u53ef\u4ee5\u8003\u8651\u7ed3\u5408\u9002\u5f53\u7684\u91cd\u8bd5\u7b56\u7565\uff0c\u4f8b\u5982\u95f4\u9694\u4e00\u6bb5\u65f6\u95f4\u540e\u5141\u8bb8\u5ba2\u6237\u7aef\u91cd\u8bd5\uff0c\u6216\u63d0\u4f9b\u989d\u5916\u7684\u63d0\u793a\u548c\u5efa\u8bae\u5e2e\u52a9\u5ba2\u6237\u7aef\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n
422 Unprocessable Entity\u72b6\u6001\u7801\u662f\u4e00\u79cd\u6709\u7528\u7684HTTP\u534f\u8bae\uff0c\u80fd\u591f\u5e2e\u52a9\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u66f4\u597d\u5730\u5904\u7406\u5b9e\u4f53\u5185\u5bb9\u7684\u9519\u8bef\u60c5\u51b5\u3002<\/strong>\u901a\u8fc7\u9002\u5f53\u7684\u5e94\u7528\uff0c\u7ed3\u5408\u6e05\u6670\u7684\u9519\u8bef\u4fe1\u606f\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u53ef\u4ee5\u63d0\u9ad8Web\u5e94\u7528\u7684\u7a33\u5b9a\u6027\u548c\u7528\u6237\u4f53\u9a8c\uff0c\u503c\u5f97\u5f00\u53d1\u8005\u4eec\u6df1\u5165\u5b66\u4e60\u548c\u638c\u63e1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" 422\u534f\u8bae\uff0c\u4e5f\u79f0\u4e3a422UnprocessableEntity\uff0c\u662f\u4e00\u79cdHTTP\u72b6\u6001\u7801\u3002\u672c\u6587\u5c06\u4ecb\u7ecd422\u534f\u8bae\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u4ee5\u53ca\u4e0e\u5176\u76f8\u5173\u7684\u5b9e\u4f8b\uff0c\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e00\u534f<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[259],"class_list":["post-78498","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-rs422"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/78498"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=78498"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/78498\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=78498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=78498"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=78498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}