Raise RuntimeError when gist is unavailable
Convert to integer before comparing. data.code is String
Merge pull request #438 from roman-yepishev/gist_error

Raise RuntimeError when gist is unavailable - #437