src/Larapi.php
public function unauthorized($msg = '', $errorCode = null, $headers = [])
    {
        return $this->getErrorResponse($msg, $errorCode, self::HTTP_UNAUTHORIZED, $headers);
    }
public function unauthorized($msg = '', $errorCode = null, $headers = [])
    {
        return $this->getErrorResponse($msg, $errorCode, self::HTTP_UNAUTHORIZED, $headers);
    }
public function unauthorized ( $ msg = '' , $ errorCode = null , $ headers = [ ] ) { return $ this -> getErrorResponse ( $ msg , $ errorCode , self :: HTTP_UNAUTHORIZED , $ headers ) ; }
Returns 401 Unauthorized Response

@param string $msg
@param int $errorCode
@param array $headers
@return json
Returns 401 Unauthorized Response