response property

Response response

A Response object derived from this exception.

Implementation

Response get response {
  return new Response(statusCode, null, {"error": message})
    ..contentType = ContentType.JSON;
}