bigcommerce / bigcommerce-api-php

Connect PHP applications with the Bigcommerce Platform
https://developer.bigcommerce.com
MIT License
143 stars 186 forks source link

Add response headers to the error exceptions #272

Closed serroba closed 2 months ago

serroba commented 2 years ago

Expected behavior

As an API user, I would like to see the response headers when I encounter an error, either 4xx or 5xx. This will increase the ability to understand what has gone wrong

Actual behavior

Exceptions are raised without header responses

Steps to reproduce behavior

Trigger any 4xx (or 5xx if it happens)