Skip to content

Commit 42223e7

Browse files
committed
update error message
1 parent 59004d5 commit 42223e7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/large-response-middleware/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/large-response-middleware/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@epilot/large-response-middleware",
3-
"version": "0.0.14",
3+
"version": "0.0.15",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

packages/large-response-middleware/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const TO_MB_FACTOR = 1_048_576.0;
1818
export const LIMIT_REQUEST_SIZE_MB = 6.0;
1919
export const LARGE_RESPONSE_MIME_TYPE = 'application/large-response.vnd+json';
2020
export const HANDLE_LARGE_RESPONSE_HEADER = 'handle-large-response';
21-
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.`;
21+
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.`;
2222
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.`;
2323

2424
export type FileUploadContext = {

0 commit comments

Comments
 (0)