Skip to content

Commit

Permalink
AYS-415 | Update 415 Error Header to Return API_ERROR Instead of `V…
Browse files Browse the repository at this point in the history
…ALIDATION_ERROR` (#421)
  • Loading branch information
yagmurbarank authored Dec 26, 2024
1 parent 5f14368 commit f4b920f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ AysErrorResponse handleHttpMediaTypeNotSupportedException(HttpMediaTypeNotSuppor
log.error(exception.getMessage(), exception);

return AysErrorResponse.builder()
.header(AysErrorResponse.Header.VALIDATION_ERROR.getName())
.header(AysErrorResponse.Header.API_ERROR.getName())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ void givenUnsupportedMediaType_whenThrowHttpMediaTypeNotSupportedException_thenR

// When
AysErrorResponse mockErrorResponse = AysErrorResponse.builder()
.header(AysErrorResponse.Header.VALIDATION_ERROR.getName())
.header(AysErrorResponse.Header.API_ERROR.getName())
.build();

// Then
Expand Down

0 comments on commit f4b920f

Please sign in to comment.