<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error formats in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/error-formats/m-p/286578#M349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A users posted an error response from AGOL here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/90015-OAuth-issues"&gt;http://forums.arcgis.com/threads/90015-OAuth-issues&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is where is this error response documented?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It isn't here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Token/02r300000213000000/"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Token/02r300000213000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing that bothers me about this is that it is hard to write code which does error handling correctly when you don't know what the response can be.&amp;nbsp; The format is very similar to that returned by ArcGIS Server except that it adds "error" and "error_description".&amp;nbsp; Why did the author choose to do this instead of simply using "message" and "details" which was already present?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a repeating pattern.&amp;nbsp; For example, the admin API to ArcGIS Server chose to use a totally different error response.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2013 20:54:02 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2013-09-10T20:54:02Z</dc:date>
    <item>
      <title>Error formats</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/error-formats/m-p/286578#M349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A users posted an error response from AGOL here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/90015-OAuth-issues"&gt;http://forums.arcgis.com/threads/90015-OAuth-issues&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is where is this error response documented?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It isn't here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Token/02r300000213000000/"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Token/02r300000213000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing that bothers me about this is that it is hard to write code which does error handling correctly when you don't know what the response can be.&amp;nbsp; The format is very similar to that returned by ArcGIS Server except that it adds "error" and "error_description".&amp;nbsp; Why did the author choose to do this instead of simply using "message" and "details" which was already present?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a repeating pattern.&amp;nbsp; For example, the admin API to ArcGIS Server chose to use a totally different error response.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 20:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/error-formats/m-p/286578#M349</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-09-10T20:54:02Z</dc:date>
    </item>
  </channel>
</rss>

