Slim POST method return code 500

I have some POST requests on the API give response statut 500 but data was stored in database and get the costume response message
Thank you

A 500 error is an ‘Internal Service Error’ which means that the error is being issued from the webserver (Apache, nginx, etc) and not from your application. Therefore you will want to look in your webserver’s error log to see what the message says to track down the issue.

I’m on shared hosting Cpanel so I don’t have an access to fix this so again thank you very much @tflight your response helps me a lot cause I don’t have this problem on localhost I thought that I have to use some specific config or a custom Htaccess to avoid this 500 code