fail<F> static method
Returns a RequestResponse instance with the error details ErrorDetail
if any
Implementation
static RequestResponse<F?> fail<F>(ErrorDetail errorDetail) =>
RequestResponse<F?>(errorDetail.info?.httpCode, false, null,
error: errorDetail);