Uncategorized

Setting Status Codes

response.setStatus(int statusCode)

response.sendError(int code,String message)

response.sendRedirect(String url)

Common HTTP 1.1 Status Codes

200 (default)
302 (forwarding; set with sendRedirect)
401 (password needed)
404 (not found; set with sendError)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s