Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create: define the error code when creating a resource fails. #233

Open
toumorokoshi opened this issue Oct 25, 2024 · 0 comments
Open

create: define the error code when creating a resource fails. #233

toumorokoshi opened this issue Oct 25, 2024 · 0 comments

Comments

@toumorokoshi
Copy link
Member

aep.dev/133 does not specify what error to return back, if it cannot create the resource.

Perhaps INVALID_ARGUMENT would be best in the common case?

  // The client specified an invalid argument.  Note that this differs
  // from `FAILED_PRECONDITION`.  `INVALID_ARGUMENT` indicates arguments
  // that are problematic regardless of the state of the system
  // (e.g., a malformed file name).
  //
  // HTTP Mapping: 400 Bad Request
  INVALID_ARGUMENT = 3;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant