Created error handler to return a properly formatted HL7 error when something bad happens