Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

404,500 Error Page Handle

 
Arun Giridhar
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys,


I'm working on Node does anyone know how to handle error pages in Node.js other then using any framework. I'm building my own library for this just want to know is there any solution which i may missed out ?


Thank you
 
Sumit Bisht
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can probably 'catch' the errors as stated in the api and redirect to error page through the response object.
 
Arun Giridhar
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sumit Bisht wrote:You can probably 'catch' the errors as stated in the api and redirect to error page through the response object.


That's very bad way of doing it. BAD BAD BAD BAD .. Use of Domain is better then that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic