diff --git a/app/assets/javascripts/discourse/lib/ajax-error.js.es6 b/app/assets/javascripts/discourse/lib/ajax-error.js.es6 index b7a8f24c6f3..0b4700a2737 100644 --- a/app/assets/javascripts/discourse/lib/ajax-error.js.es6 +++ b/app/assets/javascripts/discourse/lib/ajax-error.js.es6 @@ -36,6 +36,12 @@ function extractError(error) { } } + if (!parsedError) { + if (error.status && error.status >= 400) { + parsedError = error.status + " " + error.statusText; + } + } + return parsedError || I18n.t('generic_error'); }