@@ -120,7 +120,7 @@ instance HasClient Delete where
120instance (MimeUnrender ct result) => HasClient (Get (ct ': cts) result) where
120instance (MimeUnrender ct result) => HasClient (Get (ct ': cts) result) where
121 type Client (Get (ct ': cts) result) = BaseUrl -> EitherT ServantError IO result
121 type Client (Get (ct ': cts) result) = BaseUrl -> EitherT ServantError IO result
122 clientWithRoute Proxy req host =
122 clientWithRoute Proxy req host =
123− performRequestCT (Proxy :: Proxy ct) H.methodGet req 200 host
123+ performRequestCT (Proxy :: Proxy ct) H.methodGet req [200] host
125-- | If you use a 'Header' in one of your endpoints in your API,
125-- | If you use a 'Header' in one of your endpoints in your API,
126-- the corresponding querying function will automatically take
126-- the corresponding querying function will automatically take
@@ -167,7 +167,7 @@ instance (MimeUnrender ct a) => HasClient (Post (ct ': cts) a) where
167 type Client (Post (ct ': cts) a) = BaseUrl -> EitherT ServantError IO a
167 type Client (Post (ct ': cts) a) = BaseUrl -> EitherT ServantError IO a
169 clientWithRoute Proxy req uri =
169 clientWithRoute Proxy req uri =
170− performRequestCT (Proxy :: Proxy ct) H.methodPost req 201 uri
170+ performRequestCT (Proxy :: Proxy ct) H.methodPost req [200,201] uri
172-- | If you have a 'Put' endpoint in your API, the client
172-- | If you have a 'Put' endpoint in your API, the client
173-- side querying function that is created when calling 'client'
173-- side querying function that is created when calling 'client'
@@ -177,7 +177,7 @@ instance (MimeUnrender ct a) => HasClient (Put (ct ': cts) a) where
177 type Client (Put (ct ': cts) a) = BaseUrl -> EitherT ServantError IO a
177 type Client (Put (ct ': cts) a) = BaseUrl -> EitherT ServantError IO a
179 clientWithRoute Proxy req host =
179 clientWithRoute Proxy req host =
180− performRequestCT (Proxy :: Proxy ct) H.methodPut req 200 host
180+ performRequestCT (Proxy :: Proxy ct) H.methodPut req [200,201] host
182-- | If you use a 'QueryParam' in one of your endpoints in your API,
182-- | If you use a 'QueryParam' in one of your endpoints in your API,
183-- the corresponding querying function will automatically take
183-- the corresponding querying function will automatically take