

# UnauthorizedError
<a name="API_UnauthorizedError"></a>

The request was not authenticated or the authentication credentials were invalid. This error occurs when the request lacks valid authentication credentials or the credentials have expired.

HTTP Status Code returned: 401

## Contents
<a name="API_UnauthorizedError_Contents"></a>

 ** message **   <a name="wickr-Type-UnauthorizedError-message"></a>
A message explaining why the authentication failed.  
Type: String  
Pattern: `[\S\s]*`   
Required: No

## See Also
<a name="API_UnauthorizedError_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/wickr-2024-02-01/UnauthorizedError) 