yii\filters\auth\AuthMethod::handleFailure PHP Method

handleFailure() public method

public handleFailure ( $response )
    public function handleFailure($response)
    {
        throw new UnauthorizedHttpException('Your request was made with invalid credentials.');
    }