Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Update 'Request not authenticated' error to mention missing credentials #188

Merged
merged 2 commits into from
May 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internals/api/server_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
ErrUnknownMethod = errHub.Code("method_not_supported").StatusError("Method not supported", http.StatusNotImplemented)
ErrDomainNotFound = errHub.Code("domain_not_found").StatusError("Domain not found", http.StatusNotFound)
ErrForbidden = errAPI.Code("forbidden").StatusError("You are not allowed to perform this action", http.StatusForbidden)
ErrRequestNotAuthenticated = errAPI.Code("not_authenticated").StatusError("Request was not authenticated", http.StatusUnauthorized)
ErrRequestNotAuthenticated = errAPI.Code("not_authenticated").StatusError("Request was not authenticated. Please ensure that the client has access to a credential or that an identity provider is configured correctly.", http.StatusUnauthorized)
ErrNoAccountKeyForCredential = errAPI.Code("no_account_key_for_credential").StatusError("Could not find account-key for credential used for authentication.", http.StatusInternalServerError)
ErrCannotPerformActionOnSelf = errAPI.Code("cannot_perform_action_on_self").StatusError("You cannot perform this action on yourself", http.StatusForbidden)
ErrYourAccountNotKeyed = errAPI.Code("account_not_keyed").StatusError("Your account has not been fully initialized", http.StatusBadRequest)
Expand Down