[http_request] Add enum for status codes (#7690)

This commit is contained in:
Clyde Stubbs authored and GitHub committed 2024-10-29 16:05:58 +13:00
1 parent 63e4d4b493
commit df750d0d11
5 files changed
+65 -15

No files matched your search

@@ -106,7 +106,7 @@ uint8_t OtaHttpRequestComponent::do_ota_() {
auto container = this->parent_->get(url_with_auth);
if (container == nullptr || container->status_code != 200) {
if (container == nullptr || container->status_code != HTTP_STATUS_OK) {
return OTA_CONNECTION_ERROR;
}