Main Content

getClass

Class: matlab.net.http.StatusCode
Namespace: 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 = 
  StatusClass enumeration

    ServerError

Version History

Introduced in R2016b