HttpStatusException constructor
HttpStatusException(})
Implementation
HttpStatusException(
int code, {
dynamic message,
String? errorCode,
this.headers = const <String, String>{},
}) {
super.code = code;
super.errorCode = errorCode ?? _errorCodes[code] ?? 'http_error';
super.message = message ?? _messages[code] ?? 'Error';
}