MATLAB 帮助中心
类: matlab.net.http.StatusCode 命名空间: matlab.net.http
StatusCode 标识符为文本短语
meaning = getReasonPhrase(code)
meaning = getReasonPhrase(code) 以字符串形式返回状态代码标识符(仅英文),并添加标点符号和空格。含义基于数字代码。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
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处