Class: matlab.net.http.StatusClass Package: matlab.net.http
StatusClass name as text phrase
meaning = getReasonPhrase(class)
example
meaning = getReasonPhrase(class) returns the status class name as an English-language string with spaces between words.
class
expand all
matlab.net.http.StatusClass
Status class, specified as a matlab.net.http.StatusClass object.
Send a message to mathworks.com and display the status code category.
mathworks.com
uri = matlab.net.URI('https://www.mathworks.com'); req = matlab.net.http.RequestMessage; resp = send(req, uri); sc = getClass(resp.StatusCode); disp(getReasonPhrase(sc))
Successful
matlab.net.http.ResponseMessage | matlab.net.http.StatusLine
matlab.net.http.ResponseMessage
matlab.net.http.StatusLine
You have a modified version of this example. Do you want to open this example with your edits?