Skip to content

Commit

Permalink
fix(schema): Ignore any HTTP 404 on /config/<subject> endpoint of Sch…
Browse files Browse the repository at this point in the history
…ema Registry (#765)

close #763 

Co-authored-by: Julien Chanaud <julien.chanaud@michelin.com>
  • Loading branch information
twobeeb and Julien Chanaud authored Jul 21, 2021
1 parent d384a20 commit 14735b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public Schema.Config getConfig(String clusterId, String subject) throws IOExcept
.getConfig(subject)
);
} catch (RestClientException exception) {
if (exception.getErrorCode() != ERROR_NOT_FOUND) {
if (exception.getStatus() != 404) {
throw exception;
}

Expand Down

0 comments on commit 14735b3

Please sign in to comment.