We can customize the error messages that is displayed for the users. We need to add below 4 additional forms to the database.
This form can be used when current users authentication could not be verified.
This form can be used when the current user does not have enough access to view it.
This form can be used the document got delete and want to leave some message.
Other than above if any other error occurs you can use this to display a common message. If you want to debug it then add an editable field named “MessageString” in the form and display it.