This error class provides structured error information for debugging and error handling,
including HTTP status codes and raw error responses from the Heroku API.
Example
try { // API call that might fail awaitmakeHerokuApiCall(); } catch (error) { if (errorinstanceofHerokuApiError) { console.error(`Heroku API Error ${error.status}: ${error.message}`); console.error("Raw response:", error.errorResponse); } }
Custom error class for Heroku API errors.
This error class provides structured error information for debugging and error handling, including HTTP status codes and raw error responses from the Heroku API.
Example