SE452: Common Status Codes [15/20] Previous pageContentsNext page

Common Status Codes

HTTP response status code:

Setting the status code allows you to:

Common Status Codes

200 (OK) - Everything is fine, document follows. Default for servlets.

204 (No Content) - Browser should keep displaying previous document.

301 (Moved Permanently) - Requested document permanently moved elsewhere (indicated in Location header. Browsers go to new location automatically

302 (Found) - Requested document temporarily moved elsewhere (indicated in Location header). Browser goes to new location automatically.

304 (Not Modified) - When the request header If-Modified-Since present, the requested document was available and not modified.

401 (Unauthorized) - Browser tried to access password-protected page without proper Authorization header.

404 (Not Found) - No such page (Have you seen this before?!)

Previous pageContentsNext page