unauthorized function
Response
unauthorized()
A refused credential. Never retried: waiting cannot make a bad token good.
Implementation
http.Response unauthorized() => http.Response(
jsonEncode({'message': 'Bad credentials'}),
401,
headers: const {'content-type': 'application/json'},
);