Add User Partner and Product
This commit is contained in:
@@ -72,6 +72,9 @@ func (s *ServiceException) MapErrorsToHTTPCode() int {
|
||||
case errInvalidLogin:
|
||||
return http.StatusBadRequest
|
||||
|
||||
case errUserIsNotFound:
|
||||
return http.StatusBadRequest
|
||||
|
||||
default:
|
||||
return http.StatusInternalServerError
|
||||
}
|
||||
@@ -89,6 +92,9 @@ func (s *ServiceException) MapErrorsToCode() Code {
|
||||
case errBadRequest:
|
||||
return BadRequest
|
||||
|
||||
case errUserIsNotFound:
|
||||
return BadRequest
|
||||
|
||||
default:
|
||||
return ServerError
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user