owncloud / protoc-gen-microweb

Protoc generator for Micro web services
Apache License 2.0
7 stars 6 forks source link

converts all errors into http 400 (Bad Request) #5

Open kulmann opened 4 years ago

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