Skip to content

Commit 636c762

Browse files
msutkowskiphryneas
andauthored
Apply suggestions from code review
Co-authored-by: Lenz Weber <mail@lenzw.de>
1 parent 564f27c commit 636c762

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/rtk-query/usage-with-typescript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ const api = createApi({
321321
return {
322322
error: {
323323
status: 500,
324-
statusText: 'Error',
324+
statusText: 'Internal Server Error',
325325
data: 'Invalid ID provided.',
326326
},
327327
}

docs/rtk-query/usage/customizing-queries.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ const dynamicBaseQuery: BaseQueryFn<
583583
return {
584584
error: {
585585
status: 400,
586-
statusText: 'Error',
586+
statusText: 'Bad Request',
587587
data: 'No project ID received',
588588
},
589589
}

packages/toolkit/src/query/endpointDefinitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ interface EndpointDefinitionWithQueryFn<
9999
* if (randomVal < 0.9) {
100100
* return { data: 'tails' }
101101
* }
102-
* return { error: { status: 500, statusText: 'Impossible flip result', data: "Coin landed on it's edge!" } }
102+
* return { error: { status: 500, statusText: 'Internal Server Error', data: "Coin landed on it's edge!" } }
103103
* }
104104
* // highlight-end
105105
* })

0 commit comments

Comments
 (0)