Skip to content

Commit

Permalink
Define new webrpc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Dec 10, 2023
1 parent 5f5fb18 commit 551b9ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gen/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ var WebrpcErrors = []*schema.Error{
{Code: -5, Name: "WebrpcBadResponse", Message: "bad response", HTTPStatus: 500},
{Code: -6, Name: "WebrpcServerPanic", Message: "server panic", HTTPStatus: 500},
{Code: -7, Name: "WebrpcInternalError", Message: "internal error", HTTPStatus: 500},
{Code: -8, Name: "WebrpcClientDisconnected", Message: "client disconnected", HTTPStatus: 400},
{Code: -9, Name: "WebrpcStreamLost", Message: "stream lost", HTTPStatus: 400},
{Code: -10, Name: "WebrpcStreamFinished", Message: "stream finished", HTTPStatus: 200},
// Note: Do not change existing values. Append only.
// Keep the list short. Code and Name must be unique.
}

0 comments on commit 551b9ba

Please sign in to comment.