Skip to content

Return HTTP 409 Conflict when ETag doesn't match #2619

Description

@amolenk

In what area(s)?

/area runtime

Describe the proposal

When encountering an ETag mismatch while trying to update state, Dapr will return an HTTP 500 status code. It would be better to return an HTTP 409 Conflict status code to distinguish from other server failures.

The error code in the HTTP response body is ERR_STATE_SAVE, which is also pretty generic for an ETag conflict.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions