{"id":331,"date":"2023-02-07T12:12:03","date_gmt":"2023-02-07T12:12:03","guid":{"rendered":"https:\/\/devdocs.resales-online.com\/index.php\/docs\/new-development-updates-api\/response-code\/"},"modified":"2023-02-17T12:24:39","modified_gmt":"2023-02-17T12:24:39","slug":"response-code","status":"publish","type":"docs","link":"https:\/\/devdocs.resales-online.com\/index.php\/docs\/new-development-updates-api\/response-code\/","title":{"rendered":"Response code list"},"content":{"rendered":"\n<p>There are different HTTP response code from the API:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>200<\/code>: the API call is processed successfully. The response data is a JSON object.<\/li>\n\n\n\n<li><code>400<\/code>: there are errors when processing the request<\/li>\n\n\n\n<li><code>401<\/code>: the access token is missing or invalid<\/li>\n\n\n\n<li><code>403<\/code>: the current user does not have sufficient privilege to call the current API<\/li>\n\n\n\n<li><code>419<\/code>: the current API is called with an incorrect method. For example, you send a <code>POST<\/code> request to an endpoint that only accepts <code>GET<\/code> requests.<\/li>\n\n\n\n<li><code>422<\/code>: the input data is not valid. The validation errors is returned in the body<\/li>\n\n\n\n<li><code>5xx<\/code>: there are errors in Resales Online servers<\/li>\n\n\n\n<li><code>3xx<\/code>: the <code>Content-Type<\/code> may be missing and the current request is not processed successfully<\/li>\n<\/ul>\n","protected":false},"featured_media":0,"parent":326,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-331","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":3,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/331\/revisions"}],"predecessor-version":[{"id":432,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/331\/revisions\/432"}],"up":[{"embeddable":true,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/326"}],"next":[{"title":"Version History","link":"https:\/\/devdocs.resales-online.com\/index.php\/docs\/new-development-updates-api\/version-history\/","href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/411"}],"prev":[{"title":"PHP Script Example","link":"https:\/\/devdocs.resales-online.com\/index.php\/docs\/new-development-updates-api\/example\/","href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/docs\/332"}],"wp:attachment":[{"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/devdocs.resales-online.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}