Closed jsgoecke closed 10 years ago
Thanks for opening this ticket. I've confirmed that all error responses are only returning 1 error so I removed the array context and changed the first element to error:
{ "error": { "message":"Devices not found", "code":404 }, "timestamp":1390249917866, "eventCode":403, "_id":"52dd87bd6510d36bc4000003" }
Right now an error returns an array of errors, like this:
As it is not clear when multiple errors might occur or how to handle them, it might be better to return a single object rather than an array.