From 8cbd598abbcb00863c091f971111102d7c05a30c Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 27 Mar 2018 22:09:07 -0400 Subject: [PATCH] Add "username taken" error --- errors/general.go | 1 + 1 file changed, 1 insertion(+) diff --git a/errors/general.go b/errors/general.go index 2320575..3a3b16b 100644 --- a/errors/general.go +++ b/errors/general.go @@ -26,4 +26,5 @@ var ( // User errors ErrUserNotFound = impart.HTTPError{http.StatusNotFound, "User doesn't exist."} ErrUserNotFoundEmail = impart.HTTPError{http.StatusNotFound, "Please enter your username instead of your email address."} + ErrUsernameTaken = impart.HTTPError{http.StatusConflict, "Username is already taken."} )