nonJsonResponse function

Received nonJsonResponse({
  1. int status = 502,
  2. String body = 'Bad Gateway',
})

A non-JSON / status-only failure response.

Implementation

Received nonJsonResponse({int status = 502, String body = 'Bad Gateway'}) =>
    Received(HttpResponse(status: status, body: body));