dentiny opened a new issue, #1247:
URL: https://github.com/apache/iceberg-rust/issues/1247

   ### Apache Iceberg Rust version
   
   0.4.0 (latest version)
   
   ### Describe the bug
   
   Reading through the code, when we try to create a namespace and issue a POST 
request, we propagate `Unexpected` error when we receive 404, that doesn't 
sound correct.
   
https://github.com/apache/iceberg-rust/blob/c34982a89aa426cdb7e529f8c5c866f846bdefd1/crates/catalog/rest/src/catalog.rs#L406-L409
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   Two things about error handling:
   - Error message should match http status code;
   - Error status code should match [openapi 
spec](https://github.com/apache/iceberg/blob/137965d72d090b4268827607786ccd3c2925bbc5/open-api/rest-catalog-open-api.yaml#L320-L328)
   
   ### Willingness to contribute
   
   I can contribute a fix for this bug independently


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to