my dog learned polymorphism
The moose likes Servlets and the fly likes setStatus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "setStatus" Watch "setStatus" New topic


Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
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

Joined: Mar 22, 2000
Posts: 13037
I don't see anything in the API to restrict sendError() to 404
I agree. Here's the link:
subject: setStatus
jQuery in Action, 3rd edition