nexus-devs / NexusHub

📈 Warframe and WoW Classic Economy Analytics
https://nexushub.co
Other
92 stars 10 forks source link

Add error pages #101

Open Kaptard opened 6 years ago

Kaptard commented 6 years ago

I'm submitting a...


Current behavior

Error pages return the raw cubic error responses.


Expected behavior

Should return a proper styled error page.


Minimal reproduction of the problem

Someone gets on an error page. Instead of being all confused what happened, he'll now only be slightly confused of what just happened, since things will at least look like they belong to the page.


Environment

Browser:

For development issues:

Additional Description

Implementing this is probably easiest through cubic-api middleware functions that hijack the res object and check if the statusCode is >= 400. I'd suggest simply going with one generic template. Things will take too much time otherwise.

Kaptard commented 5 years ago

Note: This will also require a handler in vue-router to work on the client side

Nakroma commented 5 years ago

feat: define and implement behaviour on accessing non authorized endpoints