File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
718718
719719
720720 if ( ! userRecord ) {
721- response . setStatus ( 401 , 'Unauthorized' ) ;
721+ response . setStatus ( 401 ) ;
722722 return { error : INVALID_MESSAGE } ;
723723 }
724724
@@ -749,7 +749,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
749749 } ) ;
750750 }
751751 } else {
752- response . setStatus ( 401 , 'Unauthorized' ) ;
752+ response . setStatus ( 401 ) ;
753753 return { error : INVALID_MESSAGE } ;
754754 }
755755
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export interface IConfigValidator {
3636
3737export interface IAdminForthHttpResponse {
3838 setHeader : ( key : string , value : string ) => void ,
39- setStatus : ( code : number , message : string ) => void ,
39+ setStatus : ( code : number , message ? : string ) => void ,
4040 blobStream : ( ) => Writable ,
4141} ;
4242
You can’t perform that action at this time.
0 commit comments