Home
last modified time | relevance | path

Searched refs:httpStatusToGrpcStatus (Results 1 – 4 of 4) sorted by relevance

/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DGrpcUtilTest.java201 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 …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DHttp2ClientStreamTransportState.java195 status = GrpcUtil.httpStatusToGrpcStatus(httpStatus); in statusFromTrailers()
217 return GrpcUtil.httpStatusToGrpcStatus(httpStatus) in validateInitialMetadata()
DGrpcUtil.java268 public static Status httpStatusToGrpcStatus(int httpStatusCode) { in httpStatusToGrpcStatus() method in GrpcUtil
/external/grpc-grpc-java/cronet/src/main/java/io/grpc/cronet/
DCronetClientStream.java533 return GrpcUtil.httpStatusToGrpcStatus(info.getHttpStatusCode()); in toGrpcStatus()