CoapCode enum

Inheritance

Constructors

CoapCode(int codeClass, int codeDetail, String description)
const

Values

empty → const CoapCode

Indicates an empty message

Defined in RFC 7252.

const CoapCode(0, 00, 'Empty')
get → const CoapCode

The GET method

Defined in RFC 7252.

const CoapCode(0, 01, 'GET')
post → const CoapCode

The POST method

Defined in RFC 7252.

const CoapCode(0, 02, 'POST')
put → const CoapCode

The PUT method

Defined in RFC 7252.

const CoapCode(0, 03, 'PUT')
delete → const CoapCode

The DELETE method

Defined in RFC 7252.

const CoapCode(0, 04, 'DELETE')
fetch → const CoapCode

The FETCH method

Defined in RFC 8132.

const CoapCode(0, 05, 'FETCH')
patch → const CoapCode

The PATCH method

Defined in RFC 8132.

const CoapCode(0, 06, 'PATCH')
ipatch → const CoapCode

The iPATCH method

Defined in RFC 8132.

const CoapCode(0, 07, 'iPATCH')
created → const CoapCode

2.01 Created

Defined in RFC 7252.

const CoapCode(2, 01, 'Created')
deleted → const CoapCode

2.02 Deleted

Defined in RFC 7252.

const CoapCode(2, 02, 'Deleted')
valid → const CoapCode

2.03 Valid

Defined in RFC 7252.

const CoapCode(2, 03, 'Valid')
changed → const CoapCode

2.04 Changed

Defined in RFC 7252.

const CoapCode(2, 04, 'Changed')
content → const CoapCode

2.05 Content

Defined in RFC 7252.

const CoapCode(2, 05, 'Content')
continues → const CoapCode

2.31 Continue

Defined in RFC 7959.

const CoapCode(2, 31, 'Continue')
badRequest → const CoapCode

4.00 Bad Request

Defined in RFC 7252.

const CoapCode(4, 00, 'Bad Request')
unauthorized → const CoapCode

4.01 Unauthorized

Defined in RFC 7252.

const CoapCode(4, 01, 'Unauthorized')
badOption → const CoapCode

4.02 Bad Option

Defined in RFC 7252.

const CoapCode(4, 02, 'Bad Option')
forbidden → const CoapCode

4.03 Forbidden

Defined in RFC 7252.

const CoapCode(4, 03, 'Forbidden')
notFound → const CoapCode

4.04 Not Found

Defined in RFC 7252.

const CoapCode(4, 04, 'Not Found')
methodNotAllowed → const CoapCode

4.05 Method Not Allowed

Defined in RFC 7252.

const CoapCode(4, 05, 'Method Not Allowed')
notAcceptable → const CoapCode

4.06 Not Acceptable

Defined in RFC 7252.

const CoapCode(4, 06, 'Not Acceptable')
requestEntityIncomplete → const CoapCode

4.08 Request Entity Incomplete

Defined in RFC 7959.

const CoapCode(4, 08, 'Request Entity Incomplete')
conflict → const CoapCode

4.09 Conflict

Defined in RFC 8132.

const CoapCode(4, 09, 'Conflict')
preconditionFailed → const CoapCode

4.12 Precondition Failed

Defined in RFC 7252.

const CoapCode(4, 12, 'Precondition Failed')
requestEntityTooLarge → const CoapCode

4.13 Request Entity Too Large

Defined in RFC 7252 and RFC 7959.

const CoapCode(4, 13, 'Request Entity Too Large')
unsupportedMediaType → const CoapCode

4.15 Unsupported Content-Format

Defined in RFC 7252.

const CoapCode(4, 15, 'Unsupported Content-Format')
unprocessableEntity → const CoapCode

4.22 Unprocessable Entity

Defined in RFC 8132.

const CoapCode(4, 22, 'Unprocessable Entity')
tooManyRequests → const CoapCode

4.29 Too Many Requests

Defined in RFC 8516.

const CoapCode(4, 29, 'Too Many Requests')
internalServerError → const CoapCode

5.00 Internal Server Error

Defined in RFC 7252.

const CoapCode(5, 00, 'Internal Server Error')
notImplemented → const CoapCode

5.01 Not Implemented

Defined in RFC 7252.

const CoapCode(5, 01, 'Not Implemented')
badGateway → const CoapCode

5.02 Bad Gateway

Defined in RFC 7252.

const CoapCode(5, 02, 'Bad Gateway')
serviceUnavailable → const CoapCode

5.03 Service Unavailable

Defined in RFC 7252.

const CoapCode(5, 03, 'Service Unavailable')
gatewayTimeout → const CoapCode

5.04 Gateway Timeout

Defined in RFC 7252.

const CoapCode(5, 04, 'Gateway Timeout')
proxyingNotSupported → const CoapCode

5.05 Proxying Not Supported

Defined in RFC 7252.

const CoapCode(5, 05, 'Proxying Not Supported')
hopLimitReached → const CoapCode

5.08 Hop Limit Reached

Defined in RFC 8768.

const CoapCode(5, 08, 'Hop Limit Reached')
csm → const CoapCode

7.01 CSM

Defined in RFC 8323.

const CoapCode(7, 01, 'CSM')
ping → const CoapCode

7.02 Ping

Defined in RFC 8323.

const CoapCode(7, 02, 'Ping')
pong → const CoapCode

7.03 Pong

Defined in RFC 8323.

const CoapCode(7, 03, 'Pong')
release → const CoapCode

7.04 Release

Defined in RFC 8323.

const CoapCode(7, 04, 'Release')
abort → const CoapCode

7.05 Abort

Defined in RFC 8323.

const CoapCode(7, 05, 'Abort')

Properties

code int
final
codeClass int
final
codeDetail int
final
description String
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isEmpty bool
Checks whether this CoapCode indicates an empty message.
no setter
isErrorResponse bool
Checks whether this CoapCode represents a client error response code.
no setter
isRequest bool
Checks whether this CoapCode indicates a request message.
no setter
isResponse bool
Checks whether this CoapCode indicates a response message.
no setter
isServerError bool
Checks whether this CoapCode represents a server error response code.
no setter
isSignaling bool
Checks whether this CoapCode indicates a signaling message.
no setter
isSuccess bool
Checks whether this CoapCode represents a success response code.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode(int code) CoapCode?

Constants

values → const List<CoapCode>
A constant List of the values in this enum, in order of their declaration.