Skip to content

Commit

Permalink
handle 410 error code for now gone elements
Browse files Browse the repository at this point in the history
fixes #6060
  • Loading branch information
matkoniecz authored and westnordost committed Dec 29, 2024
1 parent 521ef06 commit 36fea1a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ class MapDataApiClient(
HttpStatusCode.Conflict,
// an element referred to by another element does not exist (anymore) or was redacted
HttpStatusCode.PreconditionFailed,
// some elements do not exist (anymore)
// some elements do not exist anymore as it was deleted
HttpStatusCode.Gone,
// some elements do not exist and never existed
HttpStatusCode.NotFound -> {
throw ConflictException(e.message, e)
}
Expand Down

0 comments on commit 36fea1a

Please sign in to comment.