fix mails endpoint
fix mails endpoint
fix mails endpoint, handle more errors

fix mails endpoint

handle 401 errors

handle 404s

add other http error codes

sort errors for predictability in 1.8 and 1.9

handle server errors
Merge branch 'catch_401'