ogen
ogen copied to clipboard
Client. Head request convenient error parsing.
I’m not sure whether this is a bug or intended behavior, so I’m opening this issue for clarification.
What happens: When Ogen-generated client code receives a non-success HTTP status, it fails to parse the response from a server.
Repro steps:
Clone and run the example app: https://github.com/hiddenmarten/ogen-head-example
Run the test called TestHead404Panic. These lines describe the unexpected parsing behavior.
Request: Could someone from the Ogen team confirm whether this is expected? If it’s a bug, I’d be happy to help fix it.