Skip to content

Commit 0fd8b20

Browse files
committed
Never use 000 as status code as this can have side effects in other tools
curl interprets 000 as timeout
1 parent 90ce2a4 commit 0fd8b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/graphql/graphql-error-handling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const getErrorCode = (message: string): string => {
105105
if (hasErrorCode(message)) {
106106
return message.substring(0, 3);
107107
}
108-
return '000'; // unkown error code
108+
return '500'; // unkown error code
109109
};
110110

111111
export const getErrorMessage = (message: string): string => {

0 commit comments

Comments
 (0)