Skip to content

Throw AuthorizationError when the request ends up with a 401 status code #100

@Slokilla

Description

@Slokilla

Quoting the readme :

RegistryAuthenticationException: username/password combination is invalid
RegistryAuthorizationException: username/password does not have sufficient rights to access this registry

I don't see any use of RegistryAuthorizationException. My guess is that on both 401 and 403, a RegistryAuthenticationException is thrown.

If I'm right, we should raise the right exception in a 401 context, or delete the exception from the expection classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions