Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Created January 8, 2021 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ripienaar/cc498b6790fae0af393a2b606eb9b8b7 to your computer and use it in GitHub Desktop.
Save ripienaar/cc498b6790fae0af393a2b606eb9b8b7 to your computer and use it in GitHub Desktop.
&ApiError{Code: 503, Description: "jetstream not enabled for account"}
&ApiError{Code: 400, Description: "bad request"}
&ApiError{Code: 400, Description: "expected an empty request payload"}
&ApiError{Code: 400, Description: "invalid JSON received in request"}
&ApiError{Code: 400, Description: "template name in subject does not match request"}
&ApiError{Code: 400, Description: "stream name in subject does not match request"}
&ApiError{Code: 400, Description: "stream name in subject does not match request"}
&ApiError{Code: 403, Description: "not allowed to delete internal stream"}
&ApiError{Code: 400, Description: fmt.Sprintf("sequence [%d] not found", req.Seq)}
&ApiError{Code: 400, Description: fmt.Sprintf("stream [%q] already exists", stream)}
&ApiError{Code: 500, Description: "jetstream unable to open temp storage for restore"}
&ApiError{Code: 400, Description: "deliver subject not valid"}
&ApiError{Code: 400, Description: "stream name in subject does not match request"}
&ApiError{Code: 400, Description: "consumer expected to be durable but no durable name set in subject"}
&ApiError{Code: 400, Description: "consumer expected to be durable but a durable name was not set"}
&ApiError{Code: 400, Description: "consumer name in subject does not match durable name in request"}
&ApiError{Code: 400, Description: "consumer expected to be ephemeral but detected a durable name set in subject"}
&ApiError{Code: 400, Description: "consumer expected to be ephemeral but a durable name was set in request"}
&ApiError{Code: 404, Description: "consumer not found"}
&ApiError{Code: 403, Description: "not allowed to delete consumer of internal stream"}
&ApiError{Code: 404, Description: "consumer not found"}
&ApiError{Code: 400, Description: "expected stream does not match"}
&ApiError{Code: 400, Description: fmt.Sprintf("wrong last sequence: %d", lseq)}
&ApiError{Code: 400, Description: fmt.Sprintf("wrong last msg ID: %s", last)}
&ApiError{Code: 400, Description: "message size exceeds maximum allowed"}
&ApiError{Code: 400, Description: "resource limits exceeded for account"}
400 - user input issues, not well formed requests etc
403 - cant access
404 - various not found errors
500 - various unexpected internal errors like failing to write data etc
503 - trying to access resources that isnt available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment