任意のHTTPステータスのテストをするときに便利なサイトを見つけたので備忘録とリンクとして残しておきます。便利すぎておしっこ出そう。
httpus - https://httpstat.us
ASP.NETを使ってるのが渋い。
$ curl -i httpstat.us/200
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 6
Content-Type: text/plain; charset=utf-8
Server: Microsoft-IIS/10.0
X-AspNetMvc-Version: 5.1
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Set-Cookie: ARRAffinity=89d63535b73ac702aaebfff48d7c5b55c5a76b46550f31ebb8421b9d6ccfe162;Path=/;HttpOnly;Domain=httpstat.us
Date: Sat, 07 Apr 2018 15:27:46 GMT
200 OK
$ curl -i httpstat.us/301
HTTP/1.1 301 Moved Permanently
Cache-Control: private
Content-Length: 21
Content-Type: text/plain; charset=utf-8
Location: https://httpstat.us
Server: Microsoft-IIS/10.0
X-AspNetMvc-Version: 5.1
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Set-Cookie: ARRAffinity=89d63535b73ac702aaebfff48d7c5b55c5a76b46550f31ebb8421b9d6ccfe162;Path=/;HttpOnly;Domain=httpstat.us
Date: Sat, 07 Apr 2018 15:22:08 GMT
301 Moved Permanently