(Issue #3724) added method to ajax error message