Searched refs:httpStatusToGrpcStatus (Results 1 – 4 of 4) sorted by relevance
201 assertTrue(GrpcUtil.httpStatusToGrpcStatus(500).getDescription().contains("500")); in httpStatusToGrpcStatus_messageContainsHttpStatus()206 assertEquals(Status.Code.INTERNAL, GrpcUtil.httpStatusToGrpcStatus(400).getCode()); in httpStatusToGrpcStatus_checkAgainstSpec()207 assertEquals(Status.Code.UNAUTHENTICATED, GrpcUtil.httpStatusToGrpcStatus(401).getCode()); in httpStatusToGrpcStatus_checkAgainstSpec()208 assertEquals(Status.Code.PERMISSION_DENIED, GrpcUtil.httpStatusToGrpcStatus(403).getCode()); in httpStatusToGrpcStatus_checkAgainstSpec()209 assertEquals(Status.Code.UNIMPLEMENTED, GrpcUtil.httpStatusToGrpcStatus(404).getCode()); in httpStatusToGrpcStatus_checkAgainstSpec()210 assertEquals(Status.Code.UNAVAILABLE, GrpcUtil.httpStatusToGrpcStatus(429).getCode()); in httpStatusToGrpcStatus_checkAgainstSpec()211 assertEquals(Status.Code.UNAVAILABLE, GrpcUtil.httpStatusToGrpcStatus(502).getCode()); in httpStatusToGrpcStatus_checkAgainstSpec()212 assertEquals(Status.Code.UNAVAILABLE, GrpcUtil.httpStatusToGrpcStatus(503).getCode()); in httpStatusToGrpcStatus_checkAgainstSpec()213 assertEquals(Status.Code.UNAVAILABLE, GrpcUtil.httpStatusToGrpcStatus(504).getCode()); in httpStatusToGrpcStatus_checkAgainstSpec()215 assertEquals(Status.Code.UNKNOWN, GrpcUtil.httpStatusToGrpcStatus(500).getCode()); in httpStatusToGrpcStatus_checkAgainstSpec()[all …]
195 status = GrpcUtil.httpStatusToGrpcStatus(httpStatus); in statusFromTrailers()217 return GrpcUtil.httpStatusToGrpcStatus(httpStatus) in validateInitialMetadata()
268 public static Status httpStatusToGrpcStatus(int httpStatusCode) { in httpStatusToGrpcStatus() method in GrpcUtil
533 return GrpcUtil.httpStatusToGrpcStatus(info.getHttpStatusCode()); in toGrpcStatus()