Also its not advisable to switch off custom errors and pl turn on in production to avoid showing up server errors to end users