Curl doesn't return csv file

Hi every body,
I'm getting a trouble with my script , it's supposed to return a csv file .

 /usr/bin/curl -LS -D- -X GET -H "Authorization:Basic $password" -H 'Content-Type: text/csv' -L -o  $OUTPUT_FILENAME $url;

But I get an empty file with :
{"ErrorCode":1001,"ErrorMessage":"Incorrect login or password"}
Any issue ?
Thanks in advance