We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd59c08 commit ed23b7dCopy full SHA for ed23b7d
pkg/api/handlers/modelprovider.go
@@ -180,12 +180,12 @@ func (mp *ModelProviderHandler) Validate(req api.Context) error {
180
ref.Name,
181
)
182
}
183
- return types.NewErrHttp(http.StatusProxyAuthRequired, strings.Trim(err.Error(), "\"'"))
+ return types.NewErrHttp(http.StatusUnprocessableEntity, strings.Trim(err.Error(), "\"'"))
184
185
186
var validationError ValidationError
187
if json.Unmarshal([]byte(res.Output), &validationError) == nil && validationError.Err != "" {
188
- return types.NewErrHttp(http.StatusProxyAuthRequired, validationError.Error())
+ return types.NewErrHttp(http.StatusUnprocessableEntity, validationError.Error())
189
190
191
return nil
0 commit comments