Prevent html errors from being returned to clients