Response response

A Response object derived from this exception.

Source

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