I have seen things that generate server stubs but have not encountered something that enforces things like error code/response types etc.