From a3924adc2d13b4cdee669be12507c1bfc6c4bfb0 Mon Sep 17 00:00:00 2001
From: Yoh Kenn <nckenn@users.noreply.github.com>
Date: Tue, 12 Jan 2021 15:14:36 +0800
Subject: [PATCH 1/2] Update fetchJsonLd.ts

---
 src/hydra/fetchJsonLd.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/hydra/fetchJsonLd.ts b/src/hydra/fetchJsonLd.ts
index 50280c8..6365f8c 100644
--- a/src/hydra/fetchJsonLd.ts
+++ b/src/hydra/fetchJsonLd.ts
@@ -18,6 +18,9 @@ export default async function fetchJsonLd(
   const { headers, status } = response;
   const contentType = headers.get("Content-Type");
 
+  if (202 === status) {
+    return Promise.resolve({ response });
+  }
   if (204 === status) {
     return Promise.resolve({ response });
   }

From 1dff376df899e64d93bef261ec87e7abe60ea551 Mon Sep 17 00:00:00 2001
From: Yoh Kenn <nckenn@users.noreply.github.com>
Date: Tue, 12 Jan 2021 21:10:38 +0800
Subject: [PATCH 2/2] Update fetchJsonLd.ts

---
 src/hydra/fetchJsonLd.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hydra/fetchJsonLd.ts b/src/hydra/fetchJsonLd.ts
index 50280c8..dab9095 100644
--- a/src/hydra/fetchJsonLd.ts
+++ b/src/hydra/fetchJsonLd.ts
@@ -18,7 +18,7 @@ export default async function fetchJsonLd(
   const { headers, status } = response;
   const contentType = headers.get("Content-Type");
 
-  if (204 === status) {
+  if ([202, 204].includes(status)) {
     return Promise.resolve({ response });
   }
   if (500 <= status || !contentType || !contentType.includes(jsonLdMimeType)) {