Error Message Customization
I think it is Possible to customize the error, On your install, visit the Form Registration.php in CRM/Event/Form directory.

The the error message is found in the function checkValidEvent(XXXX). and the line looks like this

CRM_Core_Error::statusBounce(ts('Registration for this event ended on %1', array(1 => $endDate)), $redirect);