From b643f7852f93f73843aa5f52f9b4545321713e10 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 5 Oct 2023 15:29:50 +0530 Subject: added invoice route (barebones) --- errors/status.go | 1 + 1 file changed, 1 insertion(+) (limited to 'errors/status.go') diff --git a/errors/status.go b/errors/status.go index c7fc2a4..c9113a9 100644 --- a/errors/status.go +++ b/errors/status.go @@ -71,6 +71,7 @@ func StatusCodeFromErr(err error) int { errors.Is(err, ErrNonUniqueEmail) || errors.Is(err, ErrNonUniqueWebsite) || errors.Is(err, ErrNonUniqueBrandName) || + errors.Is(err, ErrNonUniqueInvoiceNumber) || errors.Is(err, ErrNonUniqueBrandItem) { return http.StatusConflict } -- cgit v1.2.3