Error for status.

This commit is contained in:
LukeMathWalker 2021-01-16 23:57:57 +00:00
parent 391f29de3d
commit a8f3a5ff47

View file

@ -38,7 +38,8 @@ impl EmailClient {
.header("X-Postmark-Server-Token", &self.authorization_token)
.json(&request_body)
.send()
.await?;
.await?
.error_for_status()?;
Ok(())
}
}