Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Add Playwright visual regression tests for error pages (#2611)
Olga Bulat129980f3f16a
diff --git a/frontend/test/playwright/utils/navigation.ts b/frontend/test/playwright/utils/navigation.tsindex f81eb7b8e..8c75fcef3 100644--- a/frontend/test/playwright/utils/navigation.ts+++ b/frontend/test/playwright/utils/navigation.ts@@ -13,6 +13,8 @@ import {VIDEO,} from "~/constants/media"+import type { Breakpoint } from "~/constants/screens"+import type { BrowserContext, Locator, Page } from "@playwright/test"const messages: Record<string, Record<string, unknown>> = {@@ -273,6 +275,15 @@ export const dismissBannersUsingCookies = async (page: Page) => {await dismissTranslationBanner(page)}+export const preparePageForTests = async (+ page: Page,+ breakpoint: Breakpoint+) => {+ await dismissBannersUsingCookies(page)+ await closeFiltersUsingCookies(page)+ await setBreakpointCookie(page, breakpoint)+}+export const goToSearchTerm = async (page: Page,term: string,diff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts b/frontend/test/playwright/visual-regression/pages/errors.spec.tsnew file mode 100644index 000000000..5a7660743--- /dev/null+++ b/frontend/test/playwright/visual-regression/pages/errors.spec.ts@@ -0,0 +1,90 @@+import { test } from "@playwright/test"++import breakpoints from "~~/test/playwright/utils/breakpoints"+import {+ goToSearchTerm,+ preparePageForTests,+ renderModes,+} from "~~/test/playwright/utils/navigation"++import { supportedSearchTypes } from "~/constants/media"++test.describe.configure({ mode: "parallel" })++const errorTapes = [+ { errorStatus: 404, imageId: "da5cb478-c093-4d62-b721-cda18797e3fc" },+ { errorStatus: 429, imageId: "da5cb478-c093-4d62-b721-cda18797e3fd" },+ { errorStatus: 500, imageId: "da5cb478-c093-4d62-b721-cda18797e3fe" },+]++for (const { errorStatus, imageId } of errorTapes) {+ breakpoints.describeXl(({ breakpoint, expectSnapshot }) => {+ test(`${errorStatus} error on single-result page on SSR`, async ({+ page,+ }) => {+ await preparePageForTests(page, breakpoint)++ const path = `/image/${imageId}`++ await page.goto(path)+ await expectSnapshot(`single-result-error`, page, { fullPage: true })+ })++ test(`${errorStatus} on single-result page on CSR`, async ({ page }) => {+ await page.route(new RegExp(`v1/images/${imageId}`), (route) => {+ const requestUrl = route.request().url()++ if (requestUrl.includes("/thumb")) {+ return route.continue()+ }++ return route.fulfill({+ status: errorStatus,+ body: JSON.stringify({}),+ })+ })++ await preparePageForTests(page, breakpoint)++ await goToSearchTerm(page, "errorSearchPages", {+ mode: "CSR",+ searchType: "image",+ })+ await page.locator(`a[href*='/image/${imageId}']`).click()++ // TODO: remove `maxDiffPixelRatio` after single result pages fetching is fixed+ // https://github.com/WordPress/openverse/pull/2585+ await expectSnapshot(+ `single-result-error-CSR`,+ page,+ { fullPage: true },+ { maxDiffPixelRatio: 0.02 }+ )+ })+ })+}++for (const { errorStatus } of errorTapes) {+ for (const searchType of supportedSearchTypes) {+ for (const renderMode of renderModes) {+ breakpoints.describeXl(({ breakpoint, expectSnapshot }) => {+ test.beforeEach(async ({ page }) => {+ await preparePageForTests(page, breakpoint)+ })+ test(`${errorStatus} error on ${searchType} search on ${renderMode}`, async ({+ page,+ }) => {+ await goToSearchTerm(page, `SearchPage${errorStatus}error`, {+ mode: renderMode,+ searchType,+ })+ await expectSnapshot(+ `search-result-${searchType}-${errorStatus}-error-${renderMode}`,+ page,+ { fullPage: true }+ )+ })+ })+ }+ }+}diff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-404-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-404-error-CSR-xl-linux.pngnew file mode 100644index 000000000..930276a31Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-404-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-404-error-SSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-404-error-SSR-xl-linux.pngnew file mode 100644index 000000000..930276a31Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-404-error-SSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-429-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-429-error-CSR-xl-linux.pngnew file mode 100644index 000000000..d5c20f1ffBinary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-429-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-429-error-SSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-429-error-SSR-xl-linux.pngnew file mode 100644index 000000000..d5c20f1ffBinary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-429-error-SSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-500-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-500-error-CSR-xl-linux.pngnew file mode 100644index 000000000..623e17c07Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-500-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-500-error-SSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-500-error-SSR-xl-linux.pngnew file mode 100644index 000000000..623e17c07Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-all-500-error-SSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-404-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-404-error-CSR-xl-linux.pngnew file mode 100644index 000000000..97702f1efBinary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-404-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-404-error-SSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-404-error-SSR-xl-linux.pngnew file mode 100644index 000000000..97702f1efBinary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-404-error-SSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-429-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-429-error-CSR-xl-linux.pngnew file mode 100644index 000000000..64aac8f1eBinary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-429-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-429-error-SSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-429-error-SSR-xl-linux.pngnew file mode 100644index 000000000..64aac8f1eBinary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-429-error-SSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-500-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-500-error-CSR-xl-linux.pngnew file mode 100644index 000000000..234b26475Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-500-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-500-error-SSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-500-error-SSR-xl-linux.pngnew file mode 100644index 000000000..234b26475Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-audio-500-error-SSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-404-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-404-error-CSR-xl-linux.pngnew file mode 100644index 000000000..88f3021eaBinary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-404-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-404-error-SSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-404-error-SSR-xl-linux.pngnew file mode 100644index 000000000..88f3021eaBinary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-404-error-SSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-429-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-429-error-CSR-xl-linux.pngnew file mode 100644index 000000000..3fb911fe7Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-429-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-429-error-SSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-429-error-SSR-xl-linux.pngnew file mode 100644index 000000000..3fb911fe7Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-429-error-SSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-500-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-500-error-CSR-xl-linux.pngnew file mode 100644index 000000000..803b98394Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-500-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-500-error-SSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-500-error-SSR-xl-linux.pngnew file mode 100644index 000000000..803b98394Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/search-result-image-500-error-SSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/single-result-error-CSR-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/single-result-error-CSR-xl-linux.pngnew file mode 100644index 000000000..018a4c16cBinary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/single-result-error-CSR-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/single-result-error-xl-linux.png b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/single-result-error-xl-linux.pngnew file mode 100644index 000000000..fb41a0b71Binary files /dev/null and b/frontend/test/playwright/visual-regression/pages/errors.spec.ts-snapshots/single-result-error-xl-linux.png differdiff --git a/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fc_keep-alive.json5 b/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fc_keep-alive.json5new file mode 100644index 000000000..18015055e--- /dev/null+++ b/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fc_keep-alive.json5@@ -0,0 +1,87 @@+{+ meta: {+ createdAt: '2022-08-26T12:51:39.521Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/images/da5cb478-c093-4d62-b721-cda18797e3fc/',+ method: 'GET',+ body: '',+ },+ res: {+ status: 404,+ headers: {+ date: [+ 'Fri, 26 Aug 2022 12:51:40 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept-Encoding, Accept, Authorization, Origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'x-request-id': [+ 'b138f46ef36e40b6b4a00561c8c8cc9f',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Fri, 26 Aug 2022 12:51:40 GMT',+ ],+ 'expect-ct': [+ 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '740cb33dae9d5c74-FRA',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400, h3-29=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Not found.',+ },+ },+}diff --git a/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fd_keep-alive.json5 b/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fd_keep-alive.json5new file mode 100644index 000000000..14778aeff--- /dev/null+++ b/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fd_keep-alive.json5@@ -0,0 +1,87 @@+{+ meta: {+ createdAt: '2022-08-26T12:51:39.521Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/images/da5cb478-c093-4d62-b721-cda18797e3fd/',+ method: 'GET',+ body: '',+ },+ res: {+ status: 429,+ headers: {+ date: [+ 'Fri, 26 Aug 2022 12:51:40 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept-Encoding, Accept, Authorization, Origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'x-request-id': [+ 'b138f46ef36e40b6b4a00561c8c8cc9f',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Fri, 26 Aug 2022 12:51:40 GMT',+ ],+ 'expect-ct': [+ 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '740cb33dae9d5c74-FRA',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400, h3-29=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Not found.',+ },+ },+}diff --git a/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fe_close.json5 b/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fe_close.json5new file mode 100644index 000000000..a5f51fda2--- /dev/null+++ b/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fe_close.json5@@ -0,0 +1,92 @@+{+ meta: {+ createdAt: '2023-07-10T13:17:16.682Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ },+ req: {+ headers: {+ connection: 'close',+ },+ url: '/v1/images/da5cb478-c093-4d62-b721-cda18797e3fe/',+ method: 'GET',+ body: '',+ },+ res: {+ status: 500,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 13:17:17 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'content-length': [+ '23',+ ],+ connection: [+ 'close',+ ],+ vary: [+ 'Accept, Authorization, origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '4',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '97',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '149',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'HIT',+ ],+ age: [+ '28406',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e491606a9530528-OTP',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Internal Server Error',+ },+ },+}diff --git a/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fe_keep-alive.json5 b/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fe_keep-alive.json5new file mode 100644index 000000000..35607f44d--- /dev/null+++ b/frontend/test/tapes/detail/images/da5cb478-c093-4d62-b721-cda18797e3fe_keep-alive.json5@@ -0,0 +1,87 @@+{+ meta: {+ createdAt: '2022-08-26T12:51:39.521Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/images/da5cb478-c093-4d62-b721-cda18797e3fe/',+ method: 'GET',+ body: '',+ },+ res: {+ status: 500,+ headers: {+ date: [+ 'Fri, 26 Aug 2022 12:51:40 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept-Encoding, Accept, Authorization, Origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'x-request-id': [+ 'b138f46ef36e40b6b4a00561c8c8cc9f',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Fri, 26 Aug 2022 12:51:40 GMT',+ ],+ 'expect-ct': [+ 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '740cb33dae9d5c74-FRA',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400, h3-29=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Not found.',+ },+ },+}diff --git a/frontend/test/tapes/search/audio/q=SearchPage404error&peaks=true_close.json5 b/frontend/test/tapes/search/audio/q=SearchPage404error&peaks=true_close.json5new file mode 100644index 000000000..24f75c589--- /dev/null+++ b/frontend/test/tapes/search/audio/q=SearchPage404error&peaks=true_close.json5@@ -0,0 +1,95 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:31.443Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ },+ req: {+ headers: {+ connection: 'close',+ },+ url: '/v1/audio/?q=SearchPage404error&peaks=true',+ method: 'GET',+ body: '',+ },+ res: {+ status: 404,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:32 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'content-length': [+ '70',+ ],+ connection: [+ 'close',+ ],+ vary: [+ 'Accept, Authorization, origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '4',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '99',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '149',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:32 GMT',+ ],+ 'accept-ranges': [+ 'bytes',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e558af1e0534-OTP',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Not found.',+ },+ },+}diff --git a/frontend/test/tapes/search/audio/q=SearchPage404error&peaks=true_keep-alive.json5 b/frontend/test/tapes/search/audio/q=SearchPage404error&peaks=true_keep-alive.json5new file mode 100644index 000000000..0c66fc03f--- /dev/null+++ b/frontend/test/tapes/search/audio/q=SearchPage404error&peaks=true_keep-alive.json5@@ -0,0 +1,99 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:34.258Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/audio/?q=SearchPage404error&peaks=true',+ method: 'GET',+ body: '',+ },+ res: {+ status: 404,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:34 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept, Authorization, origin, Accept-Encoding',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '3',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '98',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '148',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:34 GMT',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e56a1c840544-OTP',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Not found.',+ },+ },+}diff --git a/frontend/test/tapes/search/audio/q=SearchPage429error&peaks=true_close.json5 b/frontend/test/tapes/search/audio/q=SearchPage429error&peaks=true_close.json5new file mode 100644index 000000000..73ee9d36e--- /dev/null+++ b/frontend/test/tapes/search/audio/q=SearchPage429error&peaks=true_close.json5@@ -0,0 +1,95 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:41.817Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ },+ req: {+ headers: {+ connection: 'close',+ },+ url: '/v1/audio/?q=SearchPage429error&peaks=true',+ method: 'GET',+ body: '',+ },+ res: {+ status: 429,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:42 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'content-length': [+ '70',+ ],+ connection: [+ 'close',+ ],+ vary: [+ 'Accept, Authorization, origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '4',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '99',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '149',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:42 GMT',+ ],+ 'accept-ranges': [+ 'bytes',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e5993e1d2870-OTP',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Request was throttled. Expected available in 3600 seconds.',+ },+ },+}diff --git a/frontend/test/tapes/search/audio/q=SearchPage429error&peaks=true_keep-alive.json5 b/frontend/test/tapes/search/audio/q=SearchPage429error&peaks=true_keep-alive.json5new file mode 100644index 000000000..e999f0373--- /dev/null+++ b/frontend/test/tapes/search/audio/q=SearchPage429error&peaks=true_keep-alive.json5@@ -0,0 +1,99 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:44.762Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/audio/?q=SearchPage429error&peaks=true',+ method: 'GET',+ body: '',+ },+ res: {+ status: 429,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:45 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept, Authorization, origin, Accept-Encoding',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '3',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '98',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '148',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:45 GMT',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e5abb959b9e1-OTP',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Request was throttled. Expected available in 3600 seconds.',+ },+ },+}diff --git a/frontend/test/tapes/search/audio/q=SearchPage500error&peaks=true_close.json5 b/frontend/test/tapes/search/audio/q=SearchPage500error&peaks=true_close.json5new file mode 100644index 000000000..a345b5546--- /dev/null+++ b/frontend/test/tapes/search/audio/q=SearchPage500error&peaks=true_close.json5@@ -0,0 +1,95 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:53.278Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ },+ req: {+ headers: {+ connection: 'close',+ },+ url: '/v1/audio/?q=SearchPage500error&peaks=true',+ method: 'GET',+ body: '',+ },+ res: {+ status: 500,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:54 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'content-length': [+ '70',+ ],+ connection: [+ 'close',+ ],+ vary: [+ 'Accept, Authorization, origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '4',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '99',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '149',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:54 GMT',+ ],+ 'accept-ranges': [+ 'bytes',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e5e0cd530557-OTP',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Internal Server Error',+ },+ },+}diff --git a/frontend/test/tapes/search/audio/q=SearchPage500error&peaks=true_keep-alive.json5 b/frontend/test/tapes/search/audio/q=SearchPage500error&peaks=true_keep-alive.json5new file mode 100644index 000000000..bd7ddd72c--- /dev/null+++ b/frontend/test/tapes/search/audio/q=SearchPage500error&peaks=true_keep-alive.json5@@ -0,0 +1,99 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:56.215Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/audio/?q=SearchPage500error&peaks=true',+ method: 'GET',+ body: '',+ },+ res: {+ status: 500,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:56 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept, Authorization, origin, Accept-Encoding',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '3',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '98',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '148',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:56 GMT',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e5f33ba7052c-OTP',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Internal Server Error',+ },+ },+}diff --git a/frontend/test/tapes/search/images/q=SearchPage404error_close.json5 b/frontend/test/tapes/search/images/q=SearchPage404error_close.json5new file mode 100644index 000000000..20cbcf1cd--- /dev/null+++ b/frontend/test/tapes/search/images/q=SearchPage404error_close.json5@@ -0,0 +1,95 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:31.443Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ },+ req: {+ headers: {+ connection: 'close',+ },+ url: '/v1/images/?q=SearchPage404error',+ method: 'GET',+ body: '',+ },+ res: {+ status: 404,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:32 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'content-length': [+ '70',+ ],+ connection: [+ 'close',+ ],+ vary: [+ 'Accept, Authorization, origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '4',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '99',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '149',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:32 GMT',+ ],+ 'accept-ranges': [+ 'bytes',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e558af1e0534-OTP',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Not found.',+ },+ },+}diff --git a/frontend/test/tapes/search/images/q=SearchPage404error_keep-alive.json5 b/frontend/test/tapes/search/images/q=SearchPage404error_keep-alive.json5new file mode 100644index 000000000..7a066caa7--- /dev/null+++ b/frontend/test/tapes/search/images/q=SearchPage404error_keep-alive.json5@@ -0,0 +1,99 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:34.258Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/images/?q=SearchPage404error',+ method: 'GET',+ body: '',+ },+ res: {+ status: 404,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:34 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept, Authorization, origin, Accept-Encoding',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '3',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '98',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '148',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:34 GMT',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e56a1c840544-OTP',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Not found.',+ },+ },+}diff --git a/frontend/test/tapes/search/images/q=SearchPage429error_close.json5 b/frontend/test/tapes/search/images/q=SearchPage429error_close.json5new file mode 100644index 000000000..16d26f285--- /dev/null+++ b/frontend/test/tapes/search/images/q=SearchPage429error_close.json5@@ -0,0 +1,95 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:41.817Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ },+ req: {+ headers: {+ connection: 'close',+ },+ url: '/v1/images/?q=SearchPage429error',+ method: 'GET',+ body: '',+ },+ res: {+ status: 429,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:42 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'content-length': [+ '70',+ ],+ connection: [+ 'close',+ ],+ vary: [+ 'Accept, Authorization, origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '4',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '99',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '149',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:42 GMT',+ ],+ 'accept-ranges': [+ 'bytes',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e5993e1d2870-OTP',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Request was throttled. Expected available in 3600 seconds.',+ },+ },+}diff --git a/frontend/test/tapes/search/images/q=SearchPage429error_keep-alive.json5 b/frontend/test/tapes/search/images/q=SearchPage429error_keep-alive.json5new file mode 100644index 000000000..576909d82--- /dev/null+++ b/frontend/test/tapes/search/images/q=SearchPage429error_keep-alive.json5@@ -0,0 +1,99 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:44.762Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/images/?q=SearchPage429error',+ method: 'GET',+ body: '',+ },+ res: {+ status: 429,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:45 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept, Authorization, origin, Accept-Encoding',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '3',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '98',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '148',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:45 GMT',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e5abb959b9e1-OTP',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Request was throttled. Expected available in 3600 seconds.',+ },+ },+}diff --git a/frontend/test/tapes/search/images/q=SearchPage500error_close.json5 b/frontend/test/tapes/search/images/q=SearchPage500error_close.json5new file mode 100644index 000000000..57b4a0c7c--- /dev/null+++ b/frontend/test/tapes/search/images/q=SearchPage500error_close.json5@@ -0,0 +1,95 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:53.278Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ },+ req: {+ headers: {+ connection: 'close',+ },+ url: '/v1/images/?q=SearchPage500error',+ method: 'GET',+ body: '',+ },+ res: {+ status: 500,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:54 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'content-length': [+ '70',+ ],+ connection: [+ 'close',+ ],+ vary: [+ 'Accept, Authorization, origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '4',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '99',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '149',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:54 GMT',+ ],+ 'accept-ranges': [+ 'bytes',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e5e0cd530557-OTP',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Internal Server Error',+ },+ },+}diff --git a/frontend/test/tapes/search/images/q=SearchPage500error_keep-alive.json5 b/frontend/test/tapes/search/images/q=SearchPage500error_keep-alive.json5new file mode 100644index 000000000..74a1053c0--- /dev/null+++ b/frontend/test/tapes/search/images/q=SearchPage500error_keep-alive.json5@@ -0,0 +1,99 @@+{+ meta: {+ createdAt: '2023-07-10T06:54:56.215Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/images/?q=SearchPage500error',+ method: 'GET',+ body: '',+ },+ res: {+ status: 500,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:54:56 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept, Authorization, origin, Accept-Encoding',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '3',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '98',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '148',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:54:56 GMT',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e46e5f33ba7052c-OTP',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ detail: 'Internal Server Error',+ },+ },+}diff --git a/frontend/test/tapes/search/images/q=errorSearchPages_keep-alive.json5 b/frontend/test/tapes/search/images/q=errorSearchPages_keep-alive.json5new file mode 100644index 000000000..963689134--- /dev/null+++ b/frontend/test/tapes/search/images/q=errorSearchPages_keep-alive.json5@@ -0,0 +1,194 @@+{+ meta: {+ createdAt: '2023-07-10T06:04:37.754Z',+ host: 'https://api.openverse.engineering',+ resHumanReadable: true,+ resUncompressed: true,+ },+ req: {+ headers: {+ connection: 'keep-alive',+ },+ url: '/v1/images/?q=errorSearchPages',+ method: 'GET',+ body: '',+ },+ res: {+ status: 200,+ headers: {+ date: [+ 'Mon, 10 Jul 2023 06:04:38 GMT',+ ],+ 'content-type': [+ 'application/json',+ ],+ 'transfer-encoding': [+ 'chunked',+ ],+ connection: [+ 'keep-alive',+ ],+ vary: [+ 'Accept-Encoding, Accept, Authorization, origin',+ ],+ allow: [+ 'GET, HEAD, OPTIONS',+ ],+ 'x-ratelimit-limit-anon_burst': [+ '5/hour',+ ],+ 'x-ratelimit-available-anon_burst': [+ '4',+ ],+ 'x-ratelimit-limit-anon_sustained': [+ '100/day',+ ],+ 'x-ratelimit-available-anon_sustained': [+ '99',+ ],+ 'x-ratelimit-limit-anon_thumbnail': [+ '150/minute',+ ],+ 'x-ratelimit-available-anon_thumbnail': [+ '149',+ ],+ 'x-frame-options': [+ 'DENY',+ ],+ 'x-content-type-options': [+ 'nosniff',+ ],+ 'referrer-policy': [+ 'same-origin',+ ],+ 'cross-origin-opener-policy': [+ 'same-origin',+ ],+ 'access-control-allow-origin': [+ '*',+ ],+ 'cache-control': [+ 'max-age=14400',+ ],+ 'cf-cache-status': [+ 'MISS',+ ],+ 'last-modified': [+ 'Mon, 10 Jul 2023 06:04:38 GMT',+ ],+ 'strict-transport-security': [+ 'max-age=15552000; includeSubDomains; preload',+ ],+ server: [+ 'cloudflare',+ ],+ 'cf-ray': [+ '7e469c41ade4284e-OTP',+ ],+ 'content-encoding': [+ 'br',+ ],+ 'alt-svc': [+ 'h3=":443"; ma=86400',+ ],+ },+ body: {+ result_count: 3,+ page_count: 1,+ page_size: 20,+ page: 1,+ results: [+ {+ id: 'da5cb478-c093-4d62-b721-cda18797e3fc',+ title: 'Oops.',+ indexed_on: '2020-05-06T03:22:26.874876Z',+ foreign_landing_url: 'https://www.flickr.com/photos/22285503@N00/221244858',+ url: 'https://live.staticflickr.com/77/221244858_a0b7b6e695_b.jpg',+ creator: 'Terry Bain',+ creator_url: 'https://www.flickr.com/photos/22285503@N00',+ license: 'by-nc-nd',+ license_version: '2.0',+ license_url: 'https://creativecommons.org/licenses/by-nd-nc/2.0/jp/',+ provider: 'flickr',+ source: 'flickr',+ category: null,+ filesize: null,+ filetype: null,+ tags: [+ ],+ attribution: '"Oops." by Terry Bain is licensed under CC BY-NC-ND 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nd-nc/2.0/jp/.',+ fields_matched: [+ 'tags.name',+ ],+ mature: false,+ height: 530,+ width: 1024,+ thumbnail: 'http://localhost:49153/v1/images/da5cb478-c093-4d62-b721-cda18797e3fc/thumb/',+ detail_url: 'http://localhost:49153/v1/images/da5cb478-c093-4d62-b721-cda18797e3fc/',+ related_url: 'http://localhost:49153/v1/images/da5cb478-c093-4d62-b721-cda18797e3fc/related/',+ unstable__sensitivity: [],+ },+ {+ id: 'da5cb478-c093-4d62-b721-cda18797e3fd',+ title: 'bloglines-maintenance',+ indexed_on: '2019-01-30T17:20:12.376669Z',+ foreign_landing_url: 'https://www.flickr.com/photos/51035619955@N01/127936923',+ url: 'https://live.staticflickr.com/11/127936923_ea853efa60.jpg',+ creator: 'mrshawnliu',+ creator_url: 'https://www.flickr.com/photos/51035619955@N01',+ license: 'by-nc-nd',+ license_version: '2.0',+ license_url: 'https://creativecommons.org/licenses/by-nd-nc/2.0/jp/',+ provider: 'flickr',+ source: 'flickr',+ category: null,+ filesize: null,+ filetype: null,+ tags: [+ ],+ attribution: '"bloglines-maintenance" by mrshawnliu is licensed under CC BY-NC-ND 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nd-nc/2.0/jp/.',+ fields_matched: [+ 'tags.name',+ ],+ mature: false,+ height: 430,+ width: 500,+ thumbnail: 'http://localhost:49153/v1/images/da5cb478-c093-4d62-b721-cda18797e3fd/thumb/',+ detail_url: 'http://localhost:49153/v1/images/da5cb478-c093-4d62-b721-cda18797e3fd/',+ related_url: 'http://localhost:49153/v1/images/da5cb478-c093-4d62-b721-cda18797e3fd/related/',+ unstable__sensitivity: [],+ },+ {+ id: 'da5cb478-c093-4d62-b721-cda18797e3fe',+ title: '403 - DropBox',+ indexed_on: '2020-04-12T09:49:26.421618Z',+ foreign_landing_url: 'https://www.flickr.com/photos/54361679@N08/7287027976',+ url: 'https://live.staticflickr.com/8014/7287027976_7fecae498b_b.jpg',+ creator: 'mrbootle',+ creator_url: 'https://www.flickr.com/photos/54361679@N08',+ license: 'by-nc',+ license_version: '2.0',+ license_url: 'https://creativecommons.org/licenses/by-nc/2.0/',+ provider: 'flickr',+ source: 'flickr',+ category: null,+ filesize: null,+ filetype: null,+ tags: [+ ],+ attribution: '"403 - DropBox" by mrbootle is licensed under CC BY-NC 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc/2.0/.',+ fields_matched: [+ 'tags.name',+ ],+ mature: false,+ height: 678,+ width: 1024,+ thumbnail: 'http://localhost:49153/v1/images/da5cb478-c093-4d62-b721-cda18797e3fe/thumb/',+ detail_url: 'http://localhost:49153/v1/images/da5cb478-c093-4d62-b721-cda18797e3fe/',+ related_url: 'http://localhost:49153/v1/images/da5cb478-c093-4d62-b721-cda18797e3fe/related/',+ unstable__sensitivity: [],+ },+ ],+ },+ },+}