When an HTTP error happens, the script should output details. This is important for an error easy to make with Porkbun: you can get an API key but not realize you also need to enable the API for the domain.
I have submitted a pull request with the change: #11