AntonioYuen commented on PR #3041:
URL: https://github.com/apache/iceberg-python/pull/3041#issuecomment-3922110535

   > We can match that expected behavior and add some additional tests for 
empty responses. Wdyt?
   
   Thanks for the thoughtfulness!
   
   Happy to write the test. If I am reading this correctly, the expected java 
output for empty response/reasons would be: `ForbiddenException: RESTException: 
Forbidden`?
   
   In that case, the expected Python exception would be `ForbiddenError: 
RestError: Forbidden`? In other words:
   ```
   http_status = HttpStatus(code)
   response = f"{exception.__name__}: RestError: {http_status.phrase}"
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to