#58 fixing
#57 give better error reports for status codes.