slachiewicz opened a new issue, #2587:
URL: https://github.com/apache/iceberg-go/issues/2587

   ### Apache Iceberg version
   
   main (development)
   
   ### Please describe the bug 🐞
   
   The REST spec answers an unsupported operation with 406 
`UnsupportedOperationResponse` (for example on `POST /v1/{prefix}/namespaces`), 
and Java's reference server (`RESTCatalogAdapter`) sends 406 for an 
`UnsupportedOperationException`. iceberg-go's client maps 501 to 
`iceberg.ErrNotImplemented` but turns a 406 into a plain `ErrRESTError`, so a 
caller can't tell "the server doesn't support this" from any other REST failure.
   
   One place this shows: against a server whose namespaces can't hold 
properties, `catalogtest`'s `NamespacePropertiesNotSupported` expects 
`ErrNotImplemented` from `CreateNamespace` with properties and gets 
`ErrRESTError`.
   
   Proposal: map 406 to `ErrNotImplemented` beside 501 in the client's status 
switch.
   


-- 
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