Select to view content in your preferred language

Error formats

1456
0
09-10-2013 01:54 PM
RichardWatson
Deactivated User
A users posted an error response from AGOL here:

http://forums.arcgis.com/threads/90015-OAuth-issues

My question is where is this error response documented?

It isn't here:

http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Token/02r300000213000000/

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.  The format is very similar to that returned by ArcGIS Server except that it adds "error" and "error_description".  Why did the author choose to do this instead of simply using "message" and "details" which was already present?

This is a repeating pattern.  For example, the admin API to ArcGIS Server chose to use a totally different error response.
Tags (2)
0 Kudos
0 Replies