Skip to content

Commit 87bcf92

Browse files
committed
Add the error code for missing user agent
- allows to google the problem - Status 403: Forbidden
1 parent 962ea1a commit 87bcf92

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

content/v3.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,15 @@ Here's an example:
386386
User-Agent: Awesome-Octocat-App
387387
</pre>
388388

389+
The error without an user agent looks like this:
390+
391+
<pre class="terminal">
392+
Status: 403 Forbidden
393+
Request forbidden by administrative rules.
394+
Please make sure your request has a User-Agent header.
395+
Check https://developer.github.com for other possible causes.
396+
</pre>
397+
389398
## Conditional requests
390399

391400
Most responses return an `ETag` header. Many responses also return a `Last-Modified` header. You can use the values

0 commit comments

Comments
 (0)