docs: update rollout docs

This commit is contained in:
2025-10-21 22:34:07 +02:00
parent 9c86e215fe
commit e6bca2c2e5
3 changed files with 192 additions and 13 deletions

View File

@@ -132,7 +132,7 @@ func (c *RegistryClient) UploadFirmware(metadata FirmwareMetadata, firmwareFile
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusCreated {
body, _ := io.ReadAll(resp.Body)
return nil, fmt.Errorf("firmware upload failed with status %d: %s", resp.StatusCode, string(body))
}