Fix number of errors

- Fix number of errors when the response code is not numberic, e.g. SocketException