ApiException.fromStatusCode constructor
Create an ApiException from HTTP status code
Implementation
factory ApiException.fromStatusCode(
int statusCode, {
String? message,
Map<String, dynamic>? response,
}) {
final defaultMessage = _getDefaultMessage(statusCode);
return ApiException(
message ?? defaultMessage,
code: statusCode.toString(),
statusCode: statusCode,
response: response,
);
}