This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "setStatus" Watch "setStatus" New topic
Author

setStatus

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
Rancher

Joined: Mar 22, 2000
Posts: 13018
    
    5
I don't see anything in the API to restrict sendError() to 404
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setStatus
 
It's not a secret anymore!