@@ -64,7 +64,7 @@ public extension HttpCodablePipelineCollection {
6464 method: HttpMethod ,
6565 headers: [ HttpHeaderKey : String ] = [ : ] ,
6666 body: Data ? = nil ,
67- validators: [ HttpResponseValidator ] = [ ]
67+ validators: [ HttpResponseValidator ] = [ HttpStatusCodeValidator ( ) ]
6868 ) async throws -> HttpResponse {
6969 let pipeline : HttpRawPipeline = . init(
7070 url: url,
@@ -96,7 +96,7 @@ public extension HttpCodablePipelineCollection {
9696 method: HttpMethod ,
9797 headers: [ HttpHeaderKey : String ] = [ : ] ,
9898 body: T ,
99- validators: [ HttpResponseValidator ] = [ ]
99+ validators: [ HttpResponseValidator ] = [ HttpStatusCodeValidator ( ) ]
100100 ) async throws -> HttpResponse {
101101 let pipeline : HttpEncodablePipeline < T > = . init(
102102 url: url,
@@ -129,7 +129,7 @@ public extension HttpCodablePipelineCollection {
129129 method: HttpMethod ,
130130 body: Data ? = nil ,
131131 headers: [ HttpHeaderKey : String ] = [ : ] ,
132- validators: [ HttpResponseValidator ] = [ ]
132+ validators: [ HttpResponseValidator ] = [ HttpStatusCodeValidator ( ) ]
133133 ) async throws -> U {
134134 let pipeline : HttpDecodablePipeline < U > = . init(
135135 url: url,
@@ -162,7 +162,7 @@ public extension HttpCodablePipelineCollection {
162162 method: HttpMethod ,
163163 headers: [ HttpHeaderKey : String ] = [ : ] ,
164164 body: T ,
165- validators: [ HttpResponseValidator ] = [ ] ) async throws -> U {
165+ validators: [ HttpResponseValidator ] = [ HttpStatusCodeValidator ( ) ] ) async throws -> U {
166166 let pipeline : HttpCodablePipeline < T , U > = . init(
167167 url: url,
168168 method: method,
0 commit comments