Error Handling

All REST APIs return JSON output appropriate for the API invoked. HTTP Status codes other than 200 are used as appropriate to indicate various failures, along with JSON for detailed error messages.