Skip to content

Allow client methods to dictate what HTTP status codes are errors or otherwise unexpected #1733

Open
@heaths

Description

@heaths

Like with other Azure SDK languages, client methods need to specify what HTTP success and failure status codes it expects, and should probably err for unexpected errors with a different error variant or at least something to denote that 1) the status code wasn't expected, and 2) there may not be a JSON error response body.

Metadata

Metadata

Labels

Azure.CoreThe azure_core crateClientThis issue points to a problem in the data-plane of the library.design-discussionAn area of design currently under discussion and open to team and community feedback.

Type

Projects

Status

Not Started

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions