帮助中心帮助中心
类: 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
您曾对此示例进行过修改。是否要打开带有您的编辑的示例?
您点击的链接对应于以下 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