Changed error codes to allow check for network connectivity with 404