{"id":236,"date":"2018-10-16T12:06:17","date_gmt":"2018-10-16T12:06:17","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=236"},"modified":"2021-06-18T12:34:01","modified_gmt":"2021-06-18T12:34:01","slug":"status-and-error-codes","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/setting-up-an-api\/status-and-error-codes\/","title":{"rendered":"Status and Error Codes"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2>Status and Error Codes<\/h2>\n<p>Responses from the API generally use standard HTTP status codes.<\/p>\n<p>Possible values:<\/p>\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"100%\">\n<thead>\n<tr>\n<th width=\"40%\"><strong>Status<\/strong><\/th>\n<th><strong>Description<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>200 &#8211; OK<\/td>\n<td>Success<\/td>\n<\/tr>\n<tr>\n<td>201 &#8211; Created<\/td>\n<td>Created one or more resource(s)<\/td>\n<\/tr>\n<tr>\n<td>204 &#8211; No Content<\/td>\n<td>The server has successfully fulfilled the request.<\/td>\n<\/tr>\n<tr>\n<td>400 &#8211; Bad Request<\/td>\n<td>The web-service request was invalid.<\/td>\n<\/tr>\n<tr>\n<td>401 &#8211; Unauthorized<\/td>\n<td>Authentication failed! Invalid credentials.<\/td>\n<\/tr>\n<tr>\n<td>403 &#8211; Forbidden<\/td>\n<td>Requested a resource to which the server does not allow access.<\/td>\n<\/tr>\n<tr>\n<td>404 &#8211; Not Found<\/td>\n<td>Requested resource not found.<\/td>\n<\/tr>\n<tr>\n<td>415 &#8211; Unsupported Media Type<\/td>\n<td>The requested payload format is in an unsupported format.<\/td>\n<\/tr>\n<tr>\n<td>429 &#8211; Too Many Request<\/td>\n<td>User has sent too many requests in a given amount of time.<\/td>\n<\/tr>\n<tr>\n<td>500 &#8211; Internal Server Error<\/td>\n<td>An internal server error occurred while processing the request.<\/td>\n<\/tr>\n<tr>\n<td>502 &#8211; Bad Gateway<\/td>\n<td>Hexnode MDM Web service server is not reachable.<\/td>\n<\/tr>\n<tr>\n<td>503 &#8211; Service Unavailable<\/td>\n<td>The server is currently unable to handle the request due to a temporary overload or maintenance of the server. This is a temporary condition which will be alleviated after some delay.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div class=\"method-example\">\n<div class=\"table-responsive\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Status and Error Codes Responses from the API generally use standard HTTP status codes. Possible values: Status Description 200 &#8211; OK Success 201 &#8211; Created Created one or more resource(s) 204 &#8211; No Content The server has successfully fulfilled the request. 400 &#8211; Bad Request The web-service request was invalid. 401 &#8211; Unauthorized Authentication failed! [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3642,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-236","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":1,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/236\/revisions"}],"predecessor-version":[{"id":4444,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/236\/revisions\/4444"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3642"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}