Skip to content

Commit fea0dd2

Browse files
committed
Increase the heading levels
1 parent eadd6d5 commit fea0dd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/guides/best-practices-for-integrators.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,29 @@ Users can dig into the server responses you send back to GitHub. Ensure that you
4141

4242
![Viewing a payload response](/images/payload_response_tab.png)
4343

44-
### Follow any redirects that the API sends you
44+
## Follow any redirects that the API sends you
4545

4646
GitHub is explicit in telling you when a resource has moved by providing a redirect status code. You should follow these redirections. Every redirect response sets the `Location` header with the new URI to go to. If you receive a redirect, it's best to update your code to follow the new URI, in case you're requesting a deprecated path that we might remove.
4747

4848
We've provided [a list of HTTP status codes](/v3/#http-redirects) to watch out for when designing your app to follow redirects.
4949

50-
### Don't manually parse URLs
50+
## Don't manually parse URLs
5151

5252
Often, API responses contain data in the form of URLs. For example, when requesting a repository, we'll send a key called `clone_url` with a URL you can use to clone the repository.
5353

5454
For the stability of your app, you shouldn't try to parse this data or try to guess and construct the format of future URLs. Your app is liable to break if we decide to change the URL.
5555

5656
For example, when working with paginated results, it's often tempting to construct URLs that append `?page=<number>` to the end. Avoid that temptation. [Our guide on pagination](/guides/traversing-with-pagination) offers some safe tips on dependably following paginated results.
5757

58-
### Dealing with rate limits
58+
## Dealing with rate limits
5959

6060
The GitHub API [rate limit](/v3/#rate-limiting) ensures that the API is fast and available for everyone.
6161

6262
If you hit a rate limit, it's expected that you back off from making requests and try again later when you're permitted to do so. Failure to do so may result in the banning of your app.
6363

6464
You can always [check your rate limit status](/v3/rate_limit/) at any time. Checking your rate limit incurs no cost against your rate limit.
6565

66-
### Dealing with API errors
66+
## Dealing with API errors
6767

6868
Although your code would never introduce a bug, you may find that you've encountered successive errors when trying to access the API.
6969

0 commit comments

Comments
 (0)