We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2539a6 commit cad4a95Copy full SHA for cad4a95
src/core/render/index.js
@@ -308,9 +308,9 @@ export function Render(Base) {
308
_renderMain(text, opt = {}, next) {
309
const { response } = this.route;
310
311
- // Note: It is possible for the response to be undefined in envrionments
+ // Note: It is possible for the response to be undefined in environments
312
// where XMLHttpRequest has been modified or mocked
313
- if (response && !response.ok) {
+ if (response && !response.ok && (!text || response.status !== 404)) {
314
text = `# ${response.status} - ${response.statusText}`;
315
}
316
0 commit comments