Skip to content

Include full response when remote API threw non-200 response #119

@laosb

Description

@laosb

Currently when the remote API returned a non-OK response, xsai throws an error with a very simple message:

XSAIError: Remote sent <status code> response

It's not helpful considering different API providers may have its own (undocumented) requirements, thus in many cases we relies on remote API's response body to fine-tune our requests based on provider requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions