Ruby 2.1.0 リファレンスマニュアル > ライブラリ一覧 > webrick/httpresponseライブラリ > WEBrick::HTTPResponseクラス > reason_phrase

instance method WEBrick::HTTPResponse#reason_phrase

reason_phrase -> String | nil[permalink][rdoc]

HTTP のレスポンスの最初の行の reason phrase を返します。 この値が nil の場合 reason phrase は status から生成されます。 デフォルトは nil です。