Skip to content

fix: improve login error messages #809

Closed
adityashekhawat1999 wants to merge 2 commits intogoharbor:mainfrom
adityashekhawat1999:fix/login-error-message
Closed

fix: improve login error messages #809
adityashekhawat1999 wants to merge 2 commits intogoharbor:mainfrom
adityashekhawat1999:fix/login-error-message

Conversation

@adityashekhawat1999
Copy link
Copy Markdown
Contributor

Description

This PR improves the error messages returned during harbor login.
Currently, login failures return raw go-swagger error messages which are not user friendly.
This change introduces clearer error messages by detecting common HTTP status codes.

Type of Change

Please select the relevant

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • Chore / maintenance

Changes

  • Detect HTTP status codes from login errors (e.g. 502, 401/403)
  • Differentiate between:
    • Server errors (5xx)
    • Authentication errors (401/403)
  • Return user friendly messages instead of raw go-swagger errors

Aditya Pratap Singh Shekhawat added 2 commits April 15, 2026 19:20
Signed-off-by: Aditya Pratap Singh Shekhawat <adityashekhawat@Adityas-MacBook-Air.local>
Signed-off-by: Aditya Pratap Singh Shekhawat <adityashekhawat@Adityas-MacBook-Air.local>
@adityashekhawat1999 adityashekhawat1999 deleted the fix/login-error-message branch April 15, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant