fix tests

This commit is contained in:
Henry Jameson 2026-06-24 19:03:46 +03:00
commit 30db636389
3 changed files with 7 additions and 3 deletions

View file

@ -13,7 +13,7 @@ function humanizeErrors(errors) {
export function StatusCodeError(statusCode, body, options, response) {
this.name = 'StatusCodeError'
this.statusCode = statusCode
this.statusText = body.error.error || body.error
this.statusText = body.error || body
this.details = JSON && JSON.stringify ? JSON.stringify(body) : body
this.errorData = body.error
this.message = this.statusCode + ' - ' + this.statusText