Jesus / dropbox_api

Ruby client library for Dropbox API v2
MIT License
171 stars 113 forks source link

Catching 401 #85

Closed aandis closed 3 years ago

aandis commented 3 years ago

The lib currently throws a DropboxApi::Errors::HttpError with response code and response body as a string. There's no way to catch specific http error codes.

aandis commented 3 years ago

@Jesus if you think this is a valid problem, I'd be happy to make a pr to fix this. :)

Jesus commented 3 years ago

@aandis thanks for reporting this, I ended up doing it myself because I need it urgently to support refresh tokens.