Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-1.x] feat: add error code unauthorized #315

Merged
merged 1 commit into from
Sep 5, 2023

Commits on Sep 5, 2023

  1. feat: add error code unauthorized (#313)

    * feat: add error code unauthorized
    
    This makes it possible to check for an invalid token using
    `hcloud.IsError(err, hcloud.ErrorCodeUnauthorized)`.
    
    * docs: cleanup error codes comments
    
    The "header" comment previously showed up for the first error code of
    that category. By adding an empty line inbetween the two are no longer
    connected.
    
    By using "Deprecated: " tooling will automatically show a deprecation
    warning for the `ErrorCodeLimitReached` constant.
    
    (cherry picked from commit b77d9e0)
    apricote authored and github-actions[bot] committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    0996fd7 View commit details
    Browse the repository at this point in the history