This function will display the error message supplied to it using the following error template:
Path - application/errors/error_general.php
The optional parameter $status_code determines what HTTP status code should be sent with the error.
show_error($message, $status_code, $heading = 'An Error Was Encountered')
Parameters:
$message (mixed) – Error message$status_code (int) – HTTP Response status code$heading (string) – Error page headingReturn type: void