hbagdi/go-unsplash

Parse response for 500 errors

hbagdi opened this issue · 2 comments

The API could return 500 or 503 errors. Handle these properly.

Handling these will generic errors.New() and dumping the HTTP body into ErrString.
Will do more customization if needed in future. Looks good for now. Marking to be fixed with #30

Fixed in #30