ヘルプ センターヘルプ センター
クラス: matlab.net.http.StatusCode パッケージ: matlab.net.http
テキスト句としての StatusCode 識別子
meaning = getReasonPhrase(code)
例
meaning = getReasonPhrase(code) は、ステータス コード識別子を、句読点とスペースが追加された string (英語のみ) として返します。意味は数値コードに基づいています。meaning は、サーバーが応答メッセージのステータス行に挿入する ReasonPhrase プロパティと必ずしも同じではありません。
code
meaning
ReasonPhrase
すべて展開する
matlab.net.http.StatusCode
ステータス コード。matlab.net.http.StatusCode オブジェクトとして指定します。
sc = matlab.net.http.StatusCode(500); res = getReasonPhrase(sc)
res = 'Internal Server Error'
R2016b で導入
matlab.net.http.StatusLine
この例の変更されたバージョンがあります。編集された方の例を開きますか?
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office