Open kulmann opened 4 years ago
The errors coming from a service handler are always forwarded as http 400 (Bad Request). Even if the service returns proper http status codes, they get lost, which makes error handling in clients bad.
For reference, here is where it happens: https://github.com/owncloud/protoc-gen-microweb/blob/66682c1280feac8b30d9549eed0f37379620c2a2/microweb.go#L195
The errors coming from a service handler are always forwarded as http 400 (Bad Request). Even if the service returns proper http status codes, they get lost, which makes error handling in clients bad.
For reference, here is where it happens: https://github.com/owncloud/protoc-gen-microweb/blob/66682c1280feac8b30d9549eed0f37379620c2a2/microweb.go#L195