-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
221 lines (199 loc) · 8.83 KB
/
index.html
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Test pages of HTTP Status code</title><style type="text/css">body { background:white; margin-left: 2%; margin-right: 2%;}p { line-height: 140%; margin-left: 2%;}h1 { font-size: 1.6em; color: #ffffff; background-color: #8888cc; padding: 1px 1px 4px 0.5em; border-top: 2px solid #4444bb; border-bottom: 2px solid #4444bb; font-weight: bold;}h2 { color: #101084; margin-left: 0.5%; padding: 2px 0px 2px 0.5em; text-align: left; border-top: 2px dotted #9944bb; border-bottom: 2px dotted #9944bb; border-left: 20px solid #9944bb;}h3 { color: #111184; border-top: 0px; border-right: 0px; border-bottom: 1px dotted gray; border-left: 2px solid gray; padding: 0px 0px 0px 0.5em; margin-left: 1%;}pre { margin-right: 10%; margin-left: 5%;}pre.source { font-family: monospace; border-width: 0.05em 0.05em 0.05em 0.05em; border-style: solid solid solid solid; padding: 0.6em 0.6em 0.6em 1.5em; background-color: #eeffee; border-color: #99cc98 }table { margin-left: 10%; border: 1px #E3E3E3 solid; border-collapse: collapse; border-spacing: 0;}table th { padding: 10px; border: #E3E3E3 solid; border-width: 0 0 1px 1px; background: #F5F5F5; font-weight: bold; font-size: large; line-height: 120%; text-align: center;}table td { padding: 10px; border: 1px #E3E3E3 solid; border-width: 0 0 1px 1px;}</style></head><body><h1>Test page of HTTP Status code</h1><h2>Abstract</h2><p>When testing/developing a software, you may need a Web server that returns particular HTTP status code in HTTP header.</p><p>This site provides any HTTP status codes for testing.</p><div align="center"><script type="text/javascript"><!--google_ad_client = "ca-pub-5307948892287547";/* big banner */google_ad_slot = "5283190127";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><h2>How to use</h2><p>Just access below URL: </p><pre class="source">http://ozuma.sakura.ne.jp/httpstatus/[http_status_code]</pre><p>fill in [http_status_code] with HTTP status code you need.</p><p>For example, <a href="http://ozuma.sakura.ne.jp/httpstatus/503">http://ozuma.sakura.ne.jp/httpstatus/503</a> returns a header "503 Service Unavailable". All responses have empty body.</p><pre class="source">HTTP/1.1 503 Service UnavailableDate: Sun, 22 Apr 2012 10:36:08 GMTServer: Apache/1.3.42 (Unix) mod_ssl/2.8.31 OpenSSL/0.9.8eConnection: closeTransfer-Encoding: chunkedContent-Type: text/html; charset=utf-8</pre><p>When you access a code which isn't shown below "Table of codes", it returns "404 Not Found". (e.g. http://ozuma.sakura.ne.jp/httpstatus/234 )</p><h2>Table of codes</h2><p>Almost status codes are defined <a href="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616</a>.</p><table> <tr><th><a href="100">100</a></th><td>Continue</td></tr> <tr><th><a href="101">101</a></th><td>Switching Protocols</td></tr> <tr><th><a href="102">102</a></th><td>Processing (<a href="http://www.ietf.org/rfc/rfc2518.txt">RFC 2518</a>)</td></tr> <tr><th><a href="200">200</a></th><td>OK</td></tr> <tr><th><a href="201">201</a></th><td>Created</td></tr> <tr><th><a href="202">202</a></th><td>Accepted</td></tr> <tr><th><a href="203">203</a></th><td>Non-Authoritative Information</td></tr> <tr><th><a href="204">204</a></th><td>No Content</td></tr> <tr><th><a href="205">205</a></th><td>Reset Content</td></tr> <tr><th><a href="206">206</a></th><td>Partial Content</td></tr> <tr><th><a href="207">207</a></th><td>Multi-Status (<a href="http://www.ietf.org/rfc/rfc4918.txt">RFC 4918</a>)</td></tr> <tr><th><a href="208">208</a></th><td>Already Reported (<a href="http://www.ietf.org/rfc/rfc5842.txt">RFC 5842</a>)</td></tr> <tr><th><a href="226">226</a></th><td>IM Used (<a href="http://www.ietf.org/rfc/rfc3229.txt">RFC 3229</a>)</td></tr> <tr><th><a href="300">300</a></th><td>Multiple Choices</td></tr> <tr><th><a href="301">301</a></th><td>Moved Permanently</td></tr> <tr><th><a href="302">302</a></th><td>Found</td></tr> <tr><th><a href="303">303</a></th><td>See Other</td></tr> <tr><th><a href="304">304</a></th><td>Not Modified</td></tr> <tr><th><a href="305">305</a></th><td>Use Proxy</td></tr> <tr><th><a href="306">306</a></th><td>Switch Proxy</td></tr> <tr><th><a href="307">307</a></th><td>Temporary Redirect</td></tr> <tr><th><a href="308">308</a></th><td>Permanent Redirect (<a href="http://datatracker.ietf.org/doc/draft-reschke-http-status-308/">draft</a>)</td></tr> <tr><th><a href="400">400</a></th><td>Bad Request</td></tr> <tr><th><a href="401">401</a></th><td>Unauthorized</td></tr> <tr><th><a href="402">402</a></th><td>Payment Required</td></tr> <tr><th><a href="403">403</a></th><td>Forbidden</td></tr> <tr><th><a href="404">404</a></th><td>Not Found</td></tr> <tr><th><a href="405">405</a></th><td>Method Not Allowed</td></tr> <tr><th><a href="406">406</a></th><td>Not Acceptable</td></tr> <tr><th><a href="407">407</a></th><td>Proxy Authentication Required</td></tr> <tr><th><a href="408">408</a></th><td>Request Timeout</td></tr> <tr><th><a href="409">409</a></th><td>Conflict</td></tr> <tr><th><a href="410">410</a></th><td>Gone</td></tr> <tr><th><a href="411">411</a></th><td>Length Required</td></tr> <tr><th><a href="412">412</a></th><td>Precondition Failed</td></tr> <tr><th><a href="413">413</a></th><td>Request Entity Too Large</td></tr> <tr><th><a href="414">414</a></th><td>Request-URI Too Long</td></tr> <tr><th><a href="415">415</a></th><td>Unsupported Media Type</td></tr> <tr><th><a href="416">416</a></th><td>Requested Range Not Satisfiable</td></tr> <tr><th><a href="417">417</a></th><td>Expectation Failed</td></tr> <tr><th><a href="418">418</a></th><td>I'm a teapot (<a href="http://www.ietf.org/rfc/rfc2324.txt">RFC 2324</a>)</td></tr> <tr><th><a href="422">422</a></th><td>Unprocessable Entity (<a href="http://www.ietf.org/rfc/rfc4918.txt">RFC 4918</a>)</td></tr> <tr><th><a href="423">423</a></th><td>Locked (<a href="http://www.ietf.org/rfc/rfc4918.txt">RFC 4918</a>)</td></tr> <tr><th><a href="424">424</a></th><td>Failed Dependency (<a href="http://www.ietf.org/rfc/rfc4918.txt">RFC 4918</a>)</td></tr> <tr><th><a href="426">426</a></th><td>Upgrade Required (<a href="http://www.ietf.org/rfc/rfc2817.txt">RFC 2817</a>)</td></tr> <tr><th><a href="428">428</a></th><td>Precondition Required (<a href="http://tools.ietf.org/html/draft-nottingham-http-new-status-04">draft</a>)</td></tr> <tr><th><a href="429">429</a></th><td>Too Many Requests (<a href="http://tools.ietf.org/html/draft-nottingham-http-new-status-04">draft</a>)</td></tr> <tr><th><a href="431">431</a></th><td>Request Header Fields Too Large (<a href="http://tools.ietf.org/html/draft-nottingham-http-new-status-04">draft</a>)</td></tr> <tr><th><a href="500">500</a></th><td>Internal Server Error</td></tr> <tr><th><a href="501">501</a></th><td>Not Implemented</td></tr> <tr><th><a href="502">502</a></th><td>Bad Gateway</td></tr> <tr><th><a href="503">503</a></th><td>Service Unavailable</td></tr> <tr><th><a href="504">504</a></th><td>Gateway Timeout</td></tr> <tr><th><a href="505">505</a></th><td>HTTP Version Not Supported</td></tr> <tr><th><a href="506">506</a></th><td>Variant Also Negotiates (<a href="http://www.ietf.org/rfc/rfc2295.txt">RFC 2295</a>)</td></tr> <tr><th><a href="507">507</a></th><td>Insufficient Storage (<a href="http://www.ietf.org/rfc/rfc4918.txt">RFC 4918</a>)</td></tr> <tr><th><a href="508">508</a></th><td>Loop Detected (<a href="http://www.ietf.org/rfc/rfc5842.txt">RFC 5842</a>)</td></tr> <tr><th><a href="510">510</a></th><td>Not Extended (<a href="http://www.ietf.org/rfc/rfc2774.txt">RFC 2774</a>)</td></tr> <tr><th><a href="511">511</a></th><td>Network Authentication Required (<a href="http://tools.ietf.org/html/draft-nottingham-http-new-status-04">draft</a>)</td></tr></table><h2>Source code</h2><p>Check <a href="/~https://github.com/ozuma/httpstatus">my GitHub account</a>.</p><h2>About</h2><p>I’m a Web/Network engineer, live in Tokyo, Japan. My nickname is "ozuma".</p><ul> <li><a href="http://ozuma.txt-nifty.com/about.html">ozuma's profile</a> (written in Japanese)</li> <li>Photo blog: <a href="http://ozphotos.wordpress.com/">Days in Japan</a></li> <li>Twitter: <a href="https://twitter.com/ozuma5119">https://twitter.com/ozuma5119</a></li> <li>mailto: ozuma5119 [at] nifty.com</li></ul><hr /><div align="right"><script type="text/javascript"><!--google_ad_client = "ca-pub-5307948892287547";/* banner default */google_ad_slot = "7901374666";google_ad_width = 468;google_ad_height = 60;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div></body></html>