preconditionFailed constant

HttpStatus const preconditionFailed

412 PRECONDITION FAILED.

One or more conditions given in the request header fields evaluated to false when tested on the server.

This response code allows the client to place preconditions on the current resource state (its current representations and metadata) and, thus, prevent the request method from being applied if the target resource is in an unexpected state.

Implementation

static const HttpStatus preconditionFailed = HttpStatus._(
  code: HttpStatusCode.preconditionFailed,
  name: 'Precondition Failed',
  description:
      'One or more conditions given in the request header fields evaluated '
      'to false when tested on the server.',
);