mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
Updated PreconditionFailed status occurences to more appropriate statuses. (#5513)
This commit is contained in:
@ -161,7 +161,7 @@ func (api *API) userOAuth2Github(rw http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
if verifiedEmail == nil {
|
||||
httpapi.Write(ctx, rw, http.StatusPreconditionRequired, codersdk.Response{
|
||||
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
|
||||
Message: "Your primary email must be verified on GitHub!",
|
||||
})
|
||||
return
|
||||
|
Reference in New Issue
Block a user