In errors.go 502 and 504 HTTP errors are missing, which makes handling them a pain in downstream code. Related: https://github.com/terraform-provider-openstack/terraform-provider-openstack/pull/1303