lundi 14 janvier 2019

In Ember.js, how can I return a hard 404 code if a route is not found?

badurl

I have the following route whenever a bad route is given from my webpage. The problem however, is that even though "technically" it says a 404, it's really not a 404. At the network level, this is actually a 200 level code.

twohundredcode

Now this makes sense. After all, the web server appropriately handles the URL but it's my ember app that catches the error.

Can I need explicitly send out a 404 using Ember.js?




Aucun commentaire:

Enregistrer un commentaire