Refactors twitter protocol exception handling

This proposes a different approach on handling exceptions related to code errors from a third party API, doesn't really improve anything or optimize the performance but in my opinion this is more readable than the conditional sequence we had before and defines a better separation of concerns delegating the correct exception class resolution to the exceptions module.