diff --git a/package-lock.json b/package-lock.json index cd3d671..98e571f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11488,7 +11488,7 @@ }, "packages/large-response-middleware": { "name": "@epilot/large-response-middleware", - "version": "0.0.14", + "version": "0.0.15", "license": "MIT", "dependencies": { "core-js": "^3.34.0", diff --git a/packages/large-response-middleware/package-lock.json b/packages/large-response-middleware/package-lock.json index 86d3439..8a37b9b 100644 --- a/packages/large-response-middleware/package-lock.json +++ b/packages/large-response-middleware/package-lock.json @@ -1,12 +1,12 @@ { "name": "@epilot/large-response-middleware", - "version": "0.0.14", + "version": "0.0.15", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@epilot/large-response-middleware", - "version": "0.0.14", + "version": "0.0.15", "license": "MIT", "dependencies": { "@dazn/lambda-powertools-logger": "^1.28.1", diff --git a/packages/large-response-middleware/package.json b/packages/large-response-middleware/package.json index e58a3e2..8e8b0d4 100644 --- a/packages/large-response-middleware/package.json +++ b/packages/large-response-middleware/package.json @@ -1,6 +1,6 @@ { "name": "@epilot/large-response-middleware", - "version": "0.0.14", + "version": "0.0.15", "license": "MIT", "repository": { "type": "git", diff --git a/packages/large-response-middleware/src/index.ts b/packages/large-response-middleware/src/index.ts index f5224bc..fb09d12 100644 --- a/packages/large-response-middleware/src/index.ts +++ b/packages/large-response-middleware/src/index.ts @@ -18,7 +18,7 @@ const TO_MB_FACTOR = 1_048_576.0; export const LIMIT_REQUEST_SIZE_MB = 6.0; export const LARGE_RESPONSE_MIME_TYPE = 'application/large-response.vnd+json'; export const HANDLE_LARGE_RESPONSE_HEADER = 'handle-large-response'; -export const LARGE_RESPONSE_USER_INFO = `Call the API with the HTTP header 'Accept: ${LARGE_RESPONSE_MIME_TYPE}' to receive the payload through an S3 ref and avoid 500 errors or '${HANDLE_LARGE_RESPONSE_HEADER}: true' to receive a 413 Bad Request error and the metadata in the response body.`; +export const LARGE_RESPONSE_USER_INFO = `Call the API with the HTTP header 'Accept: ${LARGE_RESPONSE_MIME_TYPE}' to receive the payload through an S3 ref and avoid 413 errors or '${HANDLE_LARGE_RESPONSE_HEADER}: true' to acknowledge you can handle the 413.`; export const LARGE_RESPONSE_HANDLED_INFO = `'${HANDLE_LARGE_RESPONSE_HEADER}: true' received means client can handle this event. The response is too large and can't be returned to the client.`; export type FileUploadContext = {