fatal error while trying to send message using twilio-api

i am getting this error when running the script:
Fatal error: Uncaught Twilio\Exceptions\RestException: [HTTP 451] Unable to create record in D:\xampp\htdocs\projects\twilio_script\vendor\twilio\sdk\src\Twilio\Version.php:87 Stack trace: #0 D:\xampp\htdocs\projects\twilio_script\vendor\twilio\sdk\src\Twilio\Version.php(219): Twilio\Version->exception(Object(Twilio\Http\Response), ‘Unable to creat…’) #1 D:\xampp\htdocs\projects\twilio_script\vendor\twilio\sdk\src\Twilio\Rest\Api\V2010\Account\MessageList.php(66): Twilio\Version->create(‘POST’, ‘/Accounts/ACdaf…’, Array, Array) #2 D:\xampp\htdocs\projects\twilio_script\scirpt.php(18): Twilio\Rest\Api\V2010\Account\MessageList->create(‘+213777651022’, Object(Twilio\Values)) #3 {main} thrown in D:\xampp\htdocs\projects\twilio_script\vendor\twilio\sdk\src\Twilio\Version.php on line 87
this is my code :

<?php

require_once __DIR__.'/vendor/autoload.php';

use Twilio\Rest\Client;

$sid    = "*********";
$token  = "*********";
$twilio = new Client($sid, $token);

$twilio->messages->create("+*********", // to
array(
    'from' => '+*********',
    "body" => "test message",
)
);
?>
%d bloggers like this: