{"id":13122,"date":"2016-06-22T09:19:32","date_gmt":"2016-06-22T14:19:32","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=13122"},"modified":"2016-07-13T10:44:39","modified_gmt":"2016-07-13T15:44:39","slug":"error-responses","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/rcell_api_responses\/error-responses\/","title":{"rendered":"Error Responses"},"content":{"rendered":"<p>An error response always contains the members <strong>code<\/strong>, <strong>status<\/strong>, and <strong>error<\/strong>.<\/p>\n<p>If a request encounters an error, the API halts processing and returns an error message.\u00a0As a result of this behavior, a\u00a0request with multiple errors receives a response containing only information on the first error that the API finds during the processing of that request.<\/p>\n<p><strong>Error Response Format<\/strong><\/p>\n<pre class=\"brush:xml\">Status: HTTP\/1.1 [Error Code] [Error Message]\r\n{\r\n    \"code\" : [Error Code], \r\n    \"status\" : \"fail\",\r\n    \"error\" : \"[Error Message]\"\r\n}<\/pre>\n<p><strong>Error Codes<\/strong><\/p>\n<table style=\"width: 550px; border-collapse: collapse;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; background: #4F81BD; padding: 0in .01in 0in .01in; color: white;\" valign=\"top\" width=\"100\"><strong>Code<\/strong><\/td>\n<td style=\"border: solid #4F81BD 1.0pt; background: #4F81BD; padding: 0in .01in 0in .01in; color: white;\" colspan=\"2\" valign=\"top\" width=\"450\"><strong>Error<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">400<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Bad Request<\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">401<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Unauthorized<\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">403<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Forbidden<\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">404<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Not Found<\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">405<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Method Not Allowed<\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">406<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Not Acceptable<\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">408<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Request Timeout<\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">409<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Conflict<\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">500<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Internal Server Error<\/td>\n<\/tr>\n<tr>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" valign=\"top\" width=\"100\">501<\/td>\n<td style=\"border: solid #4F81BD 1.0pt; padding: 0in .01in 0in .01in;\" colspan=\"2\" valign=\"top\" width=\"450\">Not Implemented<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>An error response always contains the members code, status, and error. If a request encounters an error, the API halts processing and returns an error message.\u00a0As a result of this behavior, a\u00a0request with multiple errors receives a response containing only information on the first error that the API finds during the processing of that request. [&hellip;]<\/p>\n","protected":false},"author":1872,"featured_media":0,"parent":13112,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-13122","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1872"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=13122"}],"version-history":[{"count":7,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13122\/revisions"}],"predecessor-version":[{"id":14062,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13122\/revisions\/14062"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13112"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=13122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}