You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, "", &models.InternalError{Message: fmt.Sprintf("Unknown status code %v", resp.StatusCode)}
This makes adding a new response status code to an existing endpoint on the server side particularly painful. If using an old client on a new server, it's reasonable to have some incompatibilities, as adding a new response code is, in some ways, a breaking change, but in practice we at Clever sometimes convert classes of 5xx into 4xx and would like to make this a bit smoother. Today, converting a 5xx into a 4xx in our API on the server-side and using an old client means the client doesn't understand the new status code, so it spits out an Internal Error (that's reasonable) BUT if the client is going to do so, it at least should not lose the response body.
The text was updated successfully, but these errors were encountered:
For example:
wag/samples/gen-go/client/client.go
Line 552 in e1e9b5b
This makes adding a new response status code to an existing endpoint on the server side particularly painful. If using an old client on a new server, it's reasonable to have some incompatibilities, as adding a new response code is, in some ways, a breaking change, but in practice we at Clever sometimes convert classes of 5xx into 4xx and would like to make this a bit smoother. Today, converting a 5xx into a 4xx in our API on the server-side and using an old client means the client doesn't understand the new status code, so it spits out an Internal Error (that's reasonable) BUT if the client is going to do so, it at least should not lose the response body.
The text was updated successfully, but these errors were encountered: