toResponse method
Converts the error to an HTTP response.
Implementation
Response toResponse() {
return Response(body, ResponseInit(status: status, headers: headers));
}
Converts the error to an HTTP response.
Response toResponse() {
return Response(body, ResponseInit(status: status, headers: headers));
}