Hello,

I'm trying to get advice from other developers about a schema change
that is intermittent. I couldn't find any API announcements that cover
this and it makes error detection a bit of a pain.

This is what's happening:

A 401 Unauthorized, depending on the endpoint, has a completely
different schema.

Here's a 401 from a GEuser timeline request:
{"request":"/1/statuses/user_timeline.json","error":"This method
requires authentication."}

And here's one from a POST to destroy a direct message:
{"errors":[{"code":32,"message":"Could not authenticate you"}]}

One is a child element collection, one is a single element, and in
either case the "error" and "message" elements are redundant for a
single model.

How are you handling this?

Reply via email to