change exception to have a 401 on error

#### Reviewers
@flopezag @jframos 

#### Description
 FIX change exception to have a 401 on error

#### Test
Tested locally