{"id":482,"date":"2017-02-21T22:52:18","date_gmt":"2017-02-21T22:52:18","guid":{"rendered":"http:\/\/live.ecd-demo.com\/apihelp\/?page_id=482"},"modified":"2017-02-21T22:52:18","modified_gmt":"2017-02-21T22:52:18","slug":"response-codes","status":"publish","type":"page","link":"https:\/\/apihelp.ecd-demo.com\/index.php\/documentation\/responses\/response-codes\/","title":{"rendered":"Response Codes"},"content":{"rendered":"<p><strong>What are the various response codes that I can use?<\/strong><br \/>\nErrors are signaled using HTTP status codes. The standard status codes are used as defined in RFC 2616. The corresponding error messages are delivered in JSON format and specified in LINK TO BE INSERTED.<\/p>\n<p>&nbsp;<\/p>\n\n<table id=\"tablepress-3\" class=\"tablepress tablepress-id-3\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">Response Code<\/th><th class=\"column-2\">Status<\/th><th class=\"column-3\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\">2xx<\/td><td class=\"column-2\">Success<\/td><td class=\"column-3\"><\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\">200<\/td><td class=\"column-2\">OK<\/td><td class=\"column-3\">Successful request, response object returned<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\">202<\/td><td class=\"column-2\">accepted<\/td><td class=\"column-3\">The request was received but not yet fully<br \/>\nprocessed (for example, batch).<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\">204<\/td><td class=\"column-2\">No response<\/td><td class=\"column-3\">Request successful, but there is no<br \/>\ninformation to send back<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\">4xx<\/td><td class=\"column-2\">Client error<\/td><td class=\"column-3\"><\/td>\n<\/tr>\n<tr class=\"row-7 odd\">\n\t<td class=\"column-1\">400<\/td><td class=\"column-2\">Bad request<\/td><td class=\"column-3\">The request could not be understood due to<br \/>\nmalformed syntax. Explanatory error<br \/>\nmessages are delivered in the following<br \/>\ngeneric format:<br \/>\n<br \/>\n{<br \/>\n\"description\": <string>,<br \/>\nrequired, error message<br \/>\n\"what\": <string><br \/>\nrequired, reference to errored<br \/>\nobject<br \/>\n}<\/td>\n<\/tr>\n<tr class=\"row-8 even\">\n\t<td class=\"column-1\">401<\/td><td class=\"column-2\">Unauthorized<\/td><td class=\"column-3\">The request was sent without valid client<br \/>\nauthentication credentials for the requested<br \/>\naction.<\/td>\n<\/tr>\n<tr class=\"row-9 odd\">\n\t<td class=\"column-1\">403<\/td><td class=\"column-2\">Forbidden<\/td><td class=\"column-3\">The request is not supported at the<br \/>\ngiven URL or your client IP address is<br \/>\nblocked.<\/td>\n<\/tr>\n<tr class=\"row-10 even\">\n\t<td class=\"column-1\">404<\/td><td class=\"column-2\">Not found<\/td><td class=\"column-3\">The requested resource was not found. This<br \/>\ncan apply to one or multiple resources<br \/>\nrequired, details are given in the error<br \/>\nmessage. Explanatory error messages are<br \/>\ndelivered in the following generic format:<br \/>\n<br \/>\n{<br \/>\n\"description\": <string>,<br \/>\nrequired, error message<br \/>\n\"what\": <string><br \/>\nrequired, reference to errored<br \/>\nobject<br \/>\n}<\/td>\n<\/tr>\n<tr class=\"row-11 odd\">\n\t<td class=\"column-1\">409<\/td><td class=\"column-2\">Conflict<\/td><td class=\"column-3\">The request cannot be fulfilled because it<br \/>\nconflicts with the current state of the system.<br \/>\nFor example, a certain resource already<br \/>\nexists and cannot be created twice.<br \/>\nExplanatory error messages are delivered in<br \/>\nthe following generic format:<br \/>\n<br \/>\n{<br \/>\n\"description\": <string>,<br \/>\nrequired, error message<br \/>\n\"what\": <string><br \/>\nrequired, reference to errored<br \/>\nobject<br \/>\n}<\/td>\n<\/tr>\n<tr class=\"row-12 even\">\n\t<td class=\"column-1\">415<\/td><td class=\"column-2\">Unsupported media type<\/td><td class=\"column-3\">A media type other than application\/json or no<br \/>\nmedia type has been specified.<\/td>\n<\/tr>\n<tr class=\"row-13 odd\">\n\t<td class=\"column-1\">429<\/td><td class=\"column-2\">Too many requests<\/td><td class=\"column-3\"><\/td>\n<\/tr>\n<tr class=\"row-14 even\">\n\t<td class=\"column-1\">5xx<\/td><td class=\"column-2\">server error<\/td><td class=\"column-3\"><\/td>\n<\/tr>\n<tr class=\"row-15 odd\">\n\t<td class=\"column-1\">500<\/td><td class=\"column-2\">Internal server error<\/td><td class=\"column-3\">The server encountered an unexpected<br \/>\ncondition which prevented it from fulfilling the<br \/>\nrequest.<\/td>\n<\/tr>\n<tr class=\"row-16 even\">\n\t<td class=\"column-1\">503<\/td><td class=\"column-2\">Service unavailable<\/td><td class=\"column-3\">The server is currently unable to handle the<br \/>\nrequest due to a temporary overloading or<br \/>\nmaintenance of the server.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-3 from cache -->\n","protected":false},"excerpt":{"rendered":"<p>What are the various response codes that I can use? Errors are signaled using HTTP status codes. The standard status codes are used as defined in RFC 2616. The corresponding error messages are delivered in JSON format and specified in LINK TO BE INSERTED. &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":939,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-482","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/pages\/482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/comments?post=482"}],"version-history":[{"count":0,"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/pages\/482\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/pages\/939"}],"wp:attachment":[{"href":"https:\/\/apihelp.ecd-demo.com\/index.php\/wp-json\/wp\/v2\/media?parent=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}