Skip to content

Commit

Permalink
Update deploy-service/teletraanservice/src/main/java/com/pinterest/te…
Browse files Browse the repository at this point in the history
…letraan/exception/GenericExceptionMapper.java

Co-authored-by: Tyler Ouyang <[email protected]>
  • Loading branch information
liyaqin1 and tylerwowen authored Jul 25, 2023
1 parent 0c97f77 commit 7201337
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Response toResponse(Throwable t) {
final Response response = ((WebApplicationException) t).getResponse();
Response.Status.Family family = response.getStatusInfo().getFamily();
if (family.equals(Response.Status.Family.CLIENT_ERROR)) {
return Response.status(Response.Status.BAD_REQUEST).entity(sb.toString()).build();
return Response.status(response.getStatus()).entity(sb.toString()).build();
} else {
return Response.serverError().entity(sb.toString()).build();
}
Expand Down

0 comments on commit 7201337

Please sign in to comment.