The easiest and fastest way is to disconnect your computer from the network, i.e. just pull the plug.
If you are using Wi-Fi or your network cable is not easily reachable, you can go to your network configuration and disconnect/disable the connection.
If you don't like any of those alternatives, for whatever reason, you can add a filter rule to your firewall that filters all traffic to the specific IP address that you want to break.
Other errors such as unreachable host, server error, 404, 403, etc. can be triggered by creating a download to a fake domain or to a URL that you know that gives 404 or 403, etc.