Main Content

getClass

Class: matlab.net.http.StatusCode
Package: matlab.net.http

StatusClass for StatusCode

Description

example

class = getClass(code) converts status code to matlab.net.http.StatusClass object.

Input Arguments

expand all

Status code, specified as a matlab.net.http.StatusCode object.

Examples

expand all

sc = matlab.net.http.StatusCode(503);
res = getClass(sc)
res = 
ServerError
Introduced in R2016b