Skip to content

Instantly share code, notes, and snippets.

@turugina
Created February 24, 2013 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turugina/5024245 to your computer and use it in GitHub Desktop.
Save turugina/5024245 to your computer and use it in GitHub Desktop.
2013-02-23 Kansai.pm 第15回ミーティングのLTで出してたスライドの原稿です。プレゼン資料への変換はmarkdown2impress.pl

/httpstatus で、HTTPのステータスコードをすばやくしらべる!

2013-02-23 kansai.pm#15 @turugina

一般的なWeb Programmerならば

HTTP Status codeはすべて暗記していると聞きました。

しかし

僕は

初心者なので

なかなかおぼえきれていないので

HTTPコードのステータスコードをさがすのに便利な

Mojoliciousプラグインを用意しました。

インストール方法は

cpanm Mojolicious::Plugin::HTTPStatusRenderer です。

使い方は以下の通りです

perl -Mojo -e 'plugin q/HTTPStatusRenderer/; app->start' daemon

4xxなコードを列挙する

http://localhost:3000/httpstatus/4

40xなコードを列挙する

http://localhost:3000/httpstatus/40

500ってなんだっけ?

http://localhost:3000/httpstatus/500

Badなんとかってなんだっけ?

http://localhost:3000/httpstatus/Bad

とりあえず全部みるか。

http://localhost:3000/httpstatus/

ご清聴ありがとうございました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment