Skip to content
File

Blob: src/worker/git/operations/fetch/responses.ts

typescript14 lines
1export function repositoryNotReadyResponse(): Response {
2 return new Response(
3 "Repository not ready for fetch. Objects are being packed, please retry in a few moments.\n",
4 {
5 status: 503,
6 headers: {
7 "Retry-After": "5",
8 "Content-Type": "text/plain; charset=utf-8",
9 "X-Git-Error": "repository-not-ready",
10 },
11 }
12 );
13}