Jump to content

Tools::displayError ¿Is secure force error 500?


estratagemas

Recommended Posts

Hi,

 

I've the following issue:
 

I'm using PrestaShop with external cache system.
 

When database connection fails (it's not usual but sometimes happens) PrestaShop return "Link to database cannot be established: SQLSTATE xxx" with http 200 response code and it gets cached. 

 

I check code and the error is sending using Tools::displayError function.

 

Someone knows if its secure forcing 500 response code inside displayError function without triggering any malfunction.

 

Thanks

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...