twitter responds with HTTP 401 for missing profiles

Posted . Visible to the public.

When your application crawls twitter profiles for tweets, it might throw HTTP 401 (Unauthorized) errors.

Those can happen for a number of reasons, one of them obviously being incorrect credentials.
However, 401 is also returned when crawling profiles that no longer exist.

True story.

Arne Hartherz
License
Source code in this card is licensed under the MIT License.
Posted by Arne Hartherz to makandra dev (2016-05-03 14:57)