raise unauthorized error in case response status is 401