File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ pub enum AxumNope {
28
28
VersionNotFound ,
29
29
#[ error( "Search yielded no results" ) ]
30
30
NoResults ,
31
+ #[ error( "Missing authentication token" ) ]
32
+ MissingAuthenticationToken ,
31
33
#[ error( "Invalid authentication token" ) ]
32
34
InvalidAuthenticationToken ,
33
35
#[ error( "internal error" ) ]
@@ -95,6 +97,11 @@ impl AxumNope {
95
97
message : Cow :: Owned ( source. to_string ( ) ) ,
96
98
status : StatusCode :: BAD_REQUEST ,
97
99
} ) ,
100
+ AxumNope :: MissingAuthenticationToken => ErrorResponse :: ErrorInfo ( ErrorInfo {
101
+ title : "Missing authentication token" ,
102
+ message : "The token used for authentication is missing" . into ( ) ,
103
+ status : StatusCode :: UNAUTHORIZED ,
104
+ } ) ,
98
105
AxumNope :: InvalidAuthenticationToken => ErrorResponse :: ErrorInfo ( ErrorInfo {
99
106
title : "Invalid authentication token" ,
100
107
message : "The token used for authentication is not valid" . into ( ) ,
You can’t perform that action at this time.
0 commit comments