-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export const internalErrorData = { code: -32603, message: "Internal error" }; | ||
export const parseErrorData = { code: -32700, message: "Parse error" }; | ||
export const methodNotFoundErrorData = { | ||
code: -32601, | ||
message: "Method not found", | ||
}; | ||
export const invalidParamsErrorData = { | ||
code: -32602, | ||
message: "Invalid params", | ||
}; | ||
export const invalidRequestErrorData = { | ||
code: -32600, | ||
message: "Invalid Request", | ||
}; | ||
|
||
/** | ||
* -32000 to -32099 Reserved for implementation-defined server-errors. | ||
*/ | ||
export const authErrorData = { code: -32020, message: "Authorization error" }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./response.ts"; | ||
export { authErrorCode } from "./auth.ts"; | ||
export * from "./error_data.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters