Skip to content

Commit b3d7831

Browse files
romtsnclaude
andcommitted
fix(code-mappings): Use OrganizationNotFound for org-scoped endpoint
The bulk code-mappings endpoint is scoped to an organization, so a 404 should report "organization not found" rather than generic "resource not found", consistent with other org-scoped endpoints. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e288070 commit b3d7831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ impl AuthenticatedApi<'_> {
986986
) -> ApiResult<BulkCodeMappingsResponse> {
987987
let path = format!("/organizations/{}/code-mappings/bulk/", PathArg(org));
988988
self.post(&path, body)?
989-
.convert_rnf(ApiErrorKind::ResourceNotFound)
989+
.convert_rnf(ApiErrorKind::OrganizationNotFound)
990990
}
991991

992992
/// Creates a preprod snapshot artifact for the given project.

0 commit comments

Comments
 (0)