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

setStatus

 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was wondering about res.sendError(..). Is it for 404 only or for others as well like SC_UNAUTHORIZED, etc?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see anything in the API to restrict sendError() to 404
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic