Skip to content

Commit

Permalink
AYS-567 | Refactor method_not_allowed response message to be API_ERROR (
Browse files Browse the repository at this point in the history
  • Loading branch information
idilalemdar authored Jan 13, 2025
1 parent 32a829e commit 13c0ed7
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 @@ -179,7 +179,7 @@ AysErrorResponse handleHttpRequestMethodNotSupportedException(HttpRequestMethodN
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 @@ -258,7 +258,7 @@ void givenUnsupportedHttpMethod_whenThrowHttpRequestMethodNotSupportedException_

// 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 13c0ed7

Please sign in to comment.