Return 501 status code when API stub is not implemented (#2327)

## Changes
Addresses feedback from
https://github.com/databricks/cli/pull/2292#discussion_r1946846865

## Tests
Manually, confirmed that unstubbed API calls still cause acceptance
tests to fail.
This commit is contained in:
shreyas-goenka 2025-02-10 18:35:12 +05:30 committed by GitHub
parent d282f33a22
commit ddedc4272d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ Response.StatusCode = <response status-code here>
return apierr.APIError{ return apierr.APIError{
Message: "No stub found for pattern: " + pattern, Message: "No stub found for pattern: " + pattern,
}, http.StatusNotFound }, http.StatusNotImplemented
}) })
return s return s