Skip to content

Merge ApiStatus + ErrorResponse #40

Open
@clux

Description

@clux

Follow up from #36
Currently Status and ErrorResponse are the same underlying object in kube AFAIKT, but are returned in different contexts:

  • ErrorResponse when !request.is_success() (and you need to grab it out of the Error)
  • Status when request.is_success() and is_right()

We should standardise this to reduce duplication.

Metadata

Metadata

Assignees

No one assigned

    Labels

    errorserror handling or error ergonomics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions