return$response->withStatus(400)->withJson(['errors'=>'Could not create the document in sharepoint','sharepointError'=>$sendResult['response']['error']]);
return$response->withStatus(400)->withJson(['errors'=>'Could not create upload session to send the document to sharepoint','sharepointError'=>$sendResult['response']['error']]);
return$response->withStatus(400)->withJson(['errors'=>'Could not send the document to sharepoint','sharepointError'=>$sendResult['response']['error']]);