HttpStatus extension type
An HTTP status code.
- on
- Implemented types
- Available extensions
Constructors
- HttpStatus(int code)
-
An HTTP status code.
const
Properties
-
address
↔ Pointer<
Never> -
Available on int, provided by the IntAddress extension
The memory address of the underlying data.getter/setter pair - bitLength → int
-
Returns the minimum number of bits required to store this integer.
no setterinherited
- code → int
-
final
- hashCode → int
-
Returns a hash code for a numerical value.
no setterinherited
- isEven → bool
-
Returns true if and only if this integer is even.
no setterinherited
- isFinite → bool
-
Whether this number is finite.
no setterinherited
- isInfinite → bool
-
Whether this number is positive infinity or negative infinity.
no setterinherited
- isNaN → bool
-
Whether this number is a Not-a-Number value.
no setterinherited
- isNegative → bool
-
Whether this number is negative.
no setterinherited
- isOdd → bool
-
Returns true if and only if this integer is odd.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sign → int
-
Returns the sign of this integer.
no setterinherited
- toJS → JSNumber
-
Available on num, provided by the NumToJSExtension extension
Converts this num to a JSNumber.no setter
Methods
-
abs(
) → int -
Returns the absolute value of this integer.
inherited
-
ceil(
) → int -
Returns
this
.inherited -
ceilToDouble(
) → double -
Returns
this.toDouble()
.inherited -
clamp(
num lowerLimit, num upperLimit) → num -
Returns this num clamped to be in the range
lowerLimit
-upperLimit
.inherited -
compareTo(
num other) → int -
Compares this to
other
.inherited -
floor(
) → int -
Returns
this
.inherited -
floorToDouble(
) → double -
Returns
this.toDouble()
.inherited -
gcd(
int other) → int -
Returns the greatest common divisor of this integer and
other
.inherited -
modInverse(
int modulus) → int -
Returns the modular multiplicative inverse of this integer
modulo
modulus
.inherited -
modPow(
int exponent, int modulus) → int -
Returns this integer to the power of
exponent
modulomodulus
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remainder(
num other) → num -
The remainder of the truncating division of
this
byother
.inherited -
round(
) → int -
Returns
this
.inherited -
roundToDouble(
) → double -
Returns
this.toDouble()
.inherited -
toDouble(
) → double -
This number as a double.
inherited
-
toInt(
) → int -
Truncates this num to an integer and returns the result as an int.
inherited
-
toRadixString(
int radix) → String -
Converts this int to a string representation in the given
radix
.inherited -
toSigned(
int width) → int -
Returns the least significant
width
bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidth
bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth
.inherited -
toString(
) → String -
Returns a string representation of this integer.
inherited
-
toStringAsExponential(
[int? fractionDigits]) → String -
An exponential string-representation of this number.
inherited
-
toStringAsFixed(
int fractionDigits) → String -
A decimal-point string-representation of this number.
inherited
-
toStringAsPrecision(
int precision) → String -
A string representation with
precision
significant digits.inherited -
toUnsigned(
int width) → int -
Returns the least significant
width
bits of this integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth
.inherited -
truncate(
) → int -
Returns
this
.inherited -
truncateToDouble(
) → double -
Returns
this.toDouble()
.inherited
Operators
-
operator %(
num other) → num -
Euclidean modulo of this number by
other
.inherited -
operator &(
int other) → int -
Bit-wise and operator.
inherited
-
operator *(
num other) → num -
Multiplies this number by
other
.inherited -
operator +(
num other) → num -
Adds
other
to this number.inherited -
operator -(
num other) → num -
Subtracts
other
from this number.inherited -
operator /(
num other) → double -
Divides this number by
other
.inherited -
operator <(
num other) → bool -
Whether this number is numerically smaller than
other
.inherited -
operator <<(
int shiftAmount) → int -
Shift the bits of this integer to the left by
shiftAmount
.inherited -
operator <=(
num other) → bool -
Whether this number is numerically smaller than or equal to
other
.inherited -
operator ==(
Object other) → bool -
Test whether this value is numerically equal to
other
.inherited -
operator >(
num other) → bool -
Whether this number is numerically greater than
other
.inherited -
operator >=(
num other) → bool -
Whether this number is numerically greater than or equal to
other
.inherited -
operator >>(
int shiftAmount) → int -
Shift the bits of this integer to the right by
shiftAmount
.inherited -
operator >>>(
int shiftAmount) → int -
Bitwise unsigned right shift by
shiftAmount
bits.inherited -
operator ^(
int other) → int -
Bit-wise exclusive-or operator.
inherited
-
operator unary-(
) → int -
Return the negative value of this integer.
inherited
-
operator |(
int other) → int -
Bit-wise or operator.
inherited
-
operator ~(
) → int -
The bit-wise negate operator.
inherited
-
operator ~/(
num other) → int -
Truncating division operator.
inherited
Constants
- accepted → const HttpStatus
-
202 Accepted
The request has been received but not yet acted upon. - badGateway → const HttpStatus
-
502 Bad Gateway
- badRequest → const HttpStatus
-
400 Bad Request
- conflict → const HttpStatus
-
409 Conflict
- created → const HttpStatus
-
201 Created
The request succeeded, and a new resource was created as a result. - forbidden → const HttpStatus
-
403 Forbidden
- gatewayTimeout → const HttpStatus
-
504 Gateway Timeout
- gone → const HttpStatus
-
410 Gone
- internalServerError → const HttpStatus
-
500 Internal Server Error
- lengthRequired → const HttpStatus
-
411 Length Required
- methodNotAllowed → const HttpStatus
-
405 Method Not Allowed
- noContent → const HttpStatus
-
204 No Content
There is no content to send for this request, but the headers may be useful. - nonAuthoritativeInformation → const HttpStatus
-
203 Non-Authoritative Information
This response code means the returned metadata is not exactly the same as is available from the origin server, but is collected from a local or a third-party copy. - notAcceptable → const HttpStatus
-
406 Not Acceptable
- notFound → const HttpStatus
-
404 Not Found
- notImplemented → const HttpStatus
-
501 Not Implemented
- ok → const HttpStatus
-
200 OK
The request succeeded. - partialContent → const HttpStatus
-
206 Partial Content
This response code is used when the Range header is sent from the client to request only part of a resource. - payloadTooLarge → const HttpStatus
-
413 Payload Too Large
- preconditionFailed → const HttpStatus
-
412 Precondition Failed
- rangeNotSatisfiable → const HttpStatus
-
416 Range Not Satisfiable
- requestTimeout → const HttpStatus
-
408 Request Timeout
- resetContent → const HttpStatus
-
205 Reset Content
Tells the user agent to reset the document which sent this request. -
503 Service Unavailable
- tooManyRequests → const HttpStatus
-
429 Too Many Requests
-
401 Unauthorized
- unsupportedMediaType → const HttpStatus
-
415 Unsupported Media Type
- uriTooLong → const HttpStatus
-
414 URI Too Long