Main Content

getClass

Class: matlab.net.http.StatusCode
Namespace: matlab.net.http

StatusClass for StatusCode

Description

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

example

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 = 
  StatusClass enumeration

    ServerError

Version History

Introduced in R2016b