added 403s to sdk error handlers (#1357)
This commit is contained in:
@@ -1388,7 +1388,7 @@ export default class FirecrawlApp {
|
||||
* @param {string} action - The action being performed when the error occurred.
|
||||
*/
|
||||
handleError(response: AxiosResponse, action: string): void {
|
||||
if ([400, 402, 408, 409, 500].includes(response.status)) {
|
||||
if ([400, 402, 403, 408, 409, 500].includes(response.status)) {
|
||||
const errorMessage: string =
|
||||
response.data.error || "Unknown error occurred";
|
||||
const details = response.data.details ? ` - ${JSON.stringify(response.data.details)}` : '';
|
||||
|
||||
Reference in New Issue
Block a user