freshOS / ws-deprecated

⚠️ Deprecated - (in favour of Networking) :cloud: Elegantly connect to a JSON api. (Alamofire + Promises + JSON Parsing)
MIT License
353 stars 32 forks source link

Add error codes and description #19

Closed maxkonovalov closed 8 years ago

maxkonovalov commented 8 years ago

Hey @s4cha!

I updated WSError to have more status codes matched. Not sure if anyone will ever need them all, but they should be there anyway 😄 Taken from here: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

Also added description to the errors, so that they can be printed or displayed to user right away 🎉

s4cha commented 8 years ago

@maxkonovalov This is fantastic !