APIResponse<T>.notFound constructor
APIResponse<T>.notFound ({})
Creates a response of status NOT_FOUND
.
Implementation
factory APIResponse.notFound(
{Map<String, dynamic>? headers,
T? payload,
Object? payloadDynamic,
Object? mimeType,
Duration? keepAliveTimeout,
int? keepAliveMaxRequests,
Map<String, APIMetric>? metrics}) {
return APIResponse(APIResponseStatus.NOT_FOUND,
headers: headers ?? <String, dynamic>{},
payload: payload,
payloadDynamic: payloadDynamic,
payloadMimeType: mimeType,
keepAliveTimeout: keepAliveTimeout,
keepAliveMaxRequests: keepAliveMaxRequests,
metrics: metrics);
}