diff --git a/Lombiq.HelpfulLibraries.Refit/Models/SimpleTextResponse.cs b/Lombiq.HelpfulLibraries.Refit/Models/SimpleTextResponse.cs
index 72683426..e383b790 100644
--- a/Lombiq.HelpfulLibraries.Refit/Models/SimpleTextResponse.cs
+++ b/Lombiq.HelpfulLibraries.Refit/Models/SimpleTextResponse.cs
@@ -30,6 +30,11 @@ public class SimpleTextResponse
///
public bool IsOk { get; }
+ ///
+ /// Gets the HTTP response status code.
+ ///
+ public HttpStatusCode StatusCode { get; }
+
///
/// Gets the error captured by the original or .
///
@@ -45,6 +50,7 @@ internal SimpleTextResponse(IApiResponse response)
Content = response.Content;
Headers = response.Headers.ToDictionary(header => header.Key, header => header.Value.First());
IsOk = response.Error == null && response.StatusCode == HttpStatusCode.OK;
+ StatusCode = response.StatusCode;
Error = response.Error;
}