How can error pages be customized

I believe your problem stems from the upload process itself. If so, you do not need to customize an error message. Instead, you need to update your upload settings, and/or publish your file size limits to your community.

This article describes what causes that error, and how to address it.

Good luck!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)