packer/datasource
Lucas Bajolet 5d43239654 datasource/http: don't error on 2xx code
When a server returns a code that is not 200, we error in the current
state.

This is not conformant to the HTTP norm, as anything in the 2xx range is
considered a success, so the datasource should not error in this case.

Therefore, this commit fixes the condition in which we report an error,
so that anything in the 2xx range is now considered a success by the
datasource.
2024-05-21 14:26:26 -04:00
..
hcp-packer-artifact Migrate HCP Packer to API V2 and new nomenclature changes (#12794) 2024-01-24 13:17:35 -05:00
hcp-packer-image Migrate HCP Packer to API V2 and new nomenclature changes (#12794) 2024-01-24 13:17:35 -05:00
hcp-packer-iteration Migrate HCP Packer to API V2 and new nomenclature changes (#12794) 2024-01-24 13:17:35 -05:00
hcp-packer-version Migrate HCP Packer to API V2 and new nomenclature changes (#12794) 2024-01-24 13:17:35 -05:00
http datasource/http: don't error on 2xx code 2024-05-21 14:26:26 -04:00
null [COMPLIANCE] License changes (#12568) 2023-08-10 15:53:29 -07:00
.gitkeep (2) Implement datasources (#10440) 2021-01-20 10:37:16 +01:00