@Badr HOUSSNI , 400 is the generic client-side error status, used when no other 4xx error code is appropriate. In case of 400 error, you need to go through the response content manually else use PowerShell to retrieve the response content message. Here is the logic to retrieve response content using PowerShell when server returns status code 400.
----------
Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.