isBadRequest property

bool get isBadRequest

Returns true if the response status code is 400 (Bad Request).

Indicates that the server cannot process the request due to client error (e.g., malformed request syntax, invalid parameters).

Implementation

bool get isBadRequest {
  return response?.statusCode == 400;
}