WebEndpointResponse<T> constructor
An answer of body with status (200 by default; 404 without a
body).
Implementation
const WebEndpointResponse({this.body, int? status, this.contentType})
: status = status ?? (body == null ? notFound : ok);