Added configuration option for setting a default message instead of using the error's message