interactions:
- request:
body: ''
headers:
accept:
- application/vnd.github+json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
host:
- api.github.com
user-agent:
- Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0
Safari/537.36
x-github-api-version:
- '2022-11-28'
method: GET
uri: https://api.github.com/search/code?per_page=5&q=totally-unrelated-service-xyz+repo%3Agoogleapis%2Fgoogleapis+path%3Agoogle%2Fcloud
response:
body:
string: "{\n \"message\": \"Requires authentication\",\n \"errors\": [\n {\n
\ \"message\": \"Must be authenticated to access the code search API\",\n
\ \"resource\": \"Search\",\n \"field\": \"q\",\n \"code\":
\"invalid\"\n }\n ],\n \"documentation_url\": \"https://docs.github.com/rest/search/search#search-code\",\n
\ \"status\": \"401\"\n}\n"
headers:
Access-Control-Allow-Origin:
- '*'
Access-Control-Expose-Headers:
- ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes,
X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO,
X-GitHub-Request-Id, Deprecation, Sunset
Cache-Control:
- no-cache
Content-Length:
- '318'
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 02 Dec 2025 17:26:05 GMT
Referrer-Policy:
- origin-when-cross-origin, strict-origin-when-cross-origin
Server:
- github.com
Strict-Transport-Security:
- max-age=31536000; includeSubdomains; preload
Vary:
- Accept,Accept-Encoding, Accept, X-Requested-With
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- deny
X-GitHub-Media-Type:
- github.v3; format=json
X-GitHub-Request-Id:
- B304:3D7FBC:171BBC4:66E6E54:692F212D
X-RateLimit-Limit:
- '60'
X-RateLimit-Remaining:
- '57'
X-RateLimit-Reset:
- '1764698325'
X-RateLimit-Resource:
- core
X-RateLimit-Used:
- '3'
X-XSS-Protection:
- '0'
x-github-api-version-selected:
- '2022-11-28'
status:
code: 401
message: Unauthorized
version: 1