Skip to content

Commit f0cf7ad

Browse files
authored
Updating status code references (sveltejs#388)
* Update README.md * Update +error.svelte * Update +error.svelte * Update README.md
1 parent 9379080 commit f0cf7ad

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

content/tutorial/01-svelte/common/src/routes/+error.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
code
1212
<a
1313
target="_blank"
14-
href="https://httpstatusdogs.com/{$page.status}"
14+
href="https://http.dog/{$page.status}"
1515
>{$page.status}</a
1616
>
1717
</p>

content/tutorial/02-advanced-svelte/common/src/routes/+error.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
code
1212
<a
1313
target="_blank"
14-
href="https://httpstatusdogs.com/{$page.status}"
14+
href="https://http.dog/{$page.status}"
1515
>{$page.status}</a
1616
>
1717
</p>

content/tutorial/03-sveltekit/07-api-routes/02-post-handlers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function POST({ request, cookies }) {
5151

5252
As with `load` functions and form actions, the `request` is a standard [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) object; `await request.json()` returns the data that we posted from the event handler.
5353

54-
We're returning a response with a [201 Created](https://httpstatusdogs.com/201-created) status and the `id` of the newly generated todo in our database. Back in the event handler, we can use this to update the page:
54+
We're returning a response with a [201 Created](https://http.dog/201) status and the `id` of the newly generated todo in our database. Back in the event handler, we can use this to update the page:
5555

5656
```svelte
5757
/// file: src/routes/+page.svelte

content/tutorial/03-sveltekit/07-api-routes/03-other-handlers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function DELETE({ params, cookies }) {
2424
}
2525
```
2626

27-
Since we don't need to return any actual data to the browser, we're returning an empty [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) with a [204 No Content](https://httpstatusdogs.com/204-no-content) status.
27+
Since we don't need to return any actual data to the browser, we're returning an empty [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) with a [204 No Content](https://http.dog/204) status.
2828

2929
We can now interact with this endpoint inside our event handlers:
3030

0 commit comments

Comments
 (0)