OTA http client does not check all status code (400, ...) (IDFGH-5298) #7058
Labels
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
Type: Feature Request
Feature request for IDF
Is your feature request related to a problem? Please describe.
esp_https_ota_begin
returnESP_OK
even if the server sent an error status code ( for instance 400 : Bad Request )Describe the solution you'd like
Add a check on the status_code != 200. To me, if the status code is != 200 it means there was a problem and we may have issue later on.
Describe alternatives you've considered
I've modified the
esp_http_client.h
file, more specifically theHttpStatus_Code
enum with the code that was interesting to me.I've also modified the
_http_handle_response_code
function in theesp_https_ota.c
file to include even more potential errors...The text was updated successfully, but these errors were encountered: