From 776522d8741752832981b17ec81deb11a298ef57 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Sep 2023 16:18:20 +0530 Subject: different customers for different users --- errors/errors.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'errors/errors.go') diff --git a/errors/errors.go b/errors/errors.go index 16e1646..6716fdc 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -42,6 +42,9 @@ var ( ErrUnauthorized = errors.New("Unauthorized") ErrSessionExpired = errors.New("Session Expired") + // 403 + ErrForbidden = errors.New("You Are Not Authorized To Access This Resource") + // 404 ErrNotFound = errors.New("Not Found") ErrBrandNotFound = errors.New("This Brand Does Not Exist") @@ -56,5 +59,5 @@ var ( ErrNonUniqueBrandItem = errors.New("Item With Same Name And Brand Already Exists") // 500 - ErrInternalServerError = errors.New("Internal Server Error") + ErrInternalServerError = errors.New("Internal Server Error") ) -- cgit v1.2.3