OriginFailure enum

Common failure types related to OriginException.

Note: this is not protocol specific failure type, so this enumeration does not list all those familiar status codes of HTTP protocol.

Inheritance

Constructors

OriginFailure()
const

Values

undefined → const OriginFailure

An origin failure is undefined or other than those specified.

notModified → const OriginFailure

An origin failure is notModified (like 304 for HTTP).

badRequest → const OriginFailure

An origin failure is badRequest (like 400 for HTTP).

unauthorized → const OriginFailure

An origin failure is unauthrorized (like 401 for HTTP).

forbidden → const OriginFailure

An origin failure is forbidden (like 403 for HTTP).

notFound → const OriginFailure

An origin failure is notFound (like 404 for HTTP).

notAcceptable → const OriginFailure

An origin failure is notAcceptable (like 406 for HTTP).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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.
inherited

Operators

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

Constants

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