Skip to content

Conversation

@iamacook
Copy link
Contributor

Summary

The Client Gateway has error inconsistencies (which will be solved) meaning that status codes are either under the status or statusCode property.

This adds a fallback to use the statusCode property, meaning that error objects are recognised if that property is present over code.

Change

  • Detect error responses if statusCode is present.
  • Fallback to statusCode value.

@iamacook iamacook requested a review from katspaugh March 18, 2025 08:02
@iamacook iamacook self-assigned this Mar 18, 2025
@iamacook iamacook merged commit 8d04d13 into main Mar 18, 2025
4 checks passed
@iamacook iamacook deleted the fix/error-message branch March 18, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants