blaizejs 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/README.md +462 -646
  2. package/dist/{payload-too-large-error-WZMDORKR.js → chunk-3VK325MM.js} +5 -3
  3. package/dist/{payload-too-large-error-WZMDORKR.js.map → chunk-3VK325MM.js.map} +1 -1
  4. package/dist/{unsupported-media-type-error-VUXOJ72O.js → chunk-7IM52S7P.js} +5 -3
  5. package/dist/{unsupported-media-type-error-VUXOJ72O.js.map → chunk-7IM52S7P.js.map} +1 -1
  6. package/dist/{chunk-ZZEQFU5V.js → chunk-CQKM74J4.js} +4 -3
  7. package/dist/{chunk-ZZEQFU5V.js.map → chunk-CQKM74J4.js.map} +1 -1
  8. package/dist/{chunk-3A5J5MKL.js → chunk-HB6MRTGD.js} +4 -3
  9. package/dist/{chunk-3A5J5MKL.js.map → chunk-HB6MRTGD.js.map} +1 -1
  10. package/dist/{chunk-SF7ZGOEK.js → chunk-IFP53BNM.js} +3 -2
  11. package/dist/{chunk-SF7ZGOEK.js.map → chunk-IFP53BNM.js.map} +1 -1
  12. package/dist/index.cjs +46 -1
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +17 -1
  15. package/dist/index.d.ts +17 -1
  16. package/dist/index.js +56 -19
  17. package/dist/index.js.map +1 -1
  18. package/dist/{internal-server-error-PKVC3ZEU.js → internal-server-error-PVME2DGN.js} +5 -4
  19. package/dist/payload-too-large-error-QQG7MKGT.js +17 -0
  20. package/dist/unsupported-media-type-error-VVHRDTUH.js +17 -0
  21. package/dist/unsupported-media-type-error-VVHRDTUH.js.map +1 -0
  22. package/dist/{validation-error-WZFF75S7.js → validation-error-TXMSFWZL.js} +5 -4
  23. package/dist/validation-error-TXMSFWZL.js.map +1 -0
  24. package/package.json +4 -4
  25. /package/dist/{internal-server-error-PKVC3ZEU.js.map → internal-server-error-PVME2DGN.js.map} +0 -0
  26. /package/dist/{validation-error-WZFF75S7.js.map → payload-too-large-error-QQG7MKGT.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -1803,6 +1803,22 @@ declare class InternalServerError extends BlaizeError<InternalServerErrorDetails
1803
1803
  constructor(title: string, details?: InternalServerErrorDetails | undefined, correlationId?: string | undefined);
1804
1804
  }
1805
1805
 
1806
+ declare class PayloadTooLargeError extends BlaizeError<PayloadTooLargeErrorDetails> {
1807
+ constructor(title: string, details?: PayloadTooLargeErrorDetails | undefined, correlationId?: string);
1808
+ }
1809
+
1810
+ declare class RequestTimeoutError extends BlaizeError {
1811
+ constructor(title: string, details?: unknown, correlationId?: string);
1812
+ }
1813
+
1814
+ declare class UnsupportedMediaTypeError extends BlaizeError {
1815
+ constructor(title: string, details?: unknown, correlationId?: string);
1816
+ }
1817
+
1818
+ declare class UnprocessableEntityError extends BlaizeError {
1819
+ constructor(title: string, details?: unknown, correlationId?: string);
1820
+ }
1821
+
1806
1822
  declare const VERSION = "0.1.0";
1807
1823
  declare const ServerAPI: {
1808
1824
  createServer: typeof create;
@@ -1850,4 +1866,4 @@ declare const Blaize: {
1850
1866
  VERSION: string;
1851
1867
  };
1852
1868
 
1853
- export { Blaize, BlaizeError, type BlaizeErrorResponse, type BodyParseError, type BuildRoutesRegistry, type ClientConfig, ConflictError, type ConflictErrorDetails, type Context, type ContextOptions, type ContextRequest, type ContextResponse, type CreateClient, type CreateContextFn, type CreateDeleteRoute, type CreateGetRoute, type CreateHeadRoute, type CreateOptionsRoute, type CreatePatchRoute, type CreatePostRoute, type CreatePutRoute, type ErrorHandlerOptions, ErrorSeverity, type ErrorTransformContext, ErrorType, type ExtractMethod, type FileCache, type FindRouteFilesOptions, ForbiddenError, type ForbiddenErrorDetails, type GetContextFn, type Http2Options, type HttpMethod, type Infer, type InternalRequestArgs, InternalServerError, type InternalServerErrorDetails, type Matcher, type Middleware, MiddlewareAPI, type MiddlewareFunction, type MiddlewareOptions, type MultipartData, type MultipartError, type MultipartLimits, type NetworkErrorContext, type NextFunction, NotFoundError, type NotFoundErrorDetails, type ParseErrorContext, type ParseOptions, type ParseResult, type ParsedRoute, type ParserState, type PayloadTooLargeErrorDetails, type Plugin, type PluginFactory, type PluginHooks, type PluginLifecycleManager, type PluginLifecycleOptions, type PluginOptions, PluginsAPI, type ProcessResponseOptions, type ProcessingConfig, type QueryParams, RateLimitError, type RateLimitErrorDetails, type ReloadMetrics, type RequestHandler, type RequestOptions, type RequestParams, type Result, type Route, type RouteDefinition, type RouteEntry, type RouteHandler, type RouteMatch, type RouteMethodOptions, type RouteNode, type RouteOptions, type RouteRegistry, type RouteSchema, type Router, RouterAPI, type RouterOptions, type Server, ServerAPI, type ServerOptions, type ServerOptionsInput, type StandardErrorResponse, type StartOptions, type State, type StopOptions, type StreamOptions, type TimeoutErrorContext, UnauthorizedError, type UnauthorizedErrorDetails, type UnifiedRequest, type UnifiedResponse, type UnknownFunction, type UnsupportedMediaTypeErrorDetails, type UploadProgress, type UploadedFile, VERSION, type ValidationConfig, ValidationError, type ValidationErrorDetails, type ValidationFieldError, type WatchOptions, compose, createDeleteRoute, createGetRoute, createHeadRoute, create$2 as createMiddleware, createOptionsRoute, createPatchRoute, create$1 as createPlugin, createPostRoute, createPutRoute, create as createServer, Blaize as default, isBodyParseError };
1869
+ export { Blaize, BlaizeError, type BlaizeErrorResponse, type BodyParseError, type BuildRoutesRegistry, type ClientConfig, ConflictError, type ConflictErrorDetails, type Context, type ContextOptions, type ContextRequest, type ContextResponse, type CreateClient, type CreateContextFn, type CreateDeleteRoute, type CreateGetRoute, type CreateHeadRoute, type CreateOptionsRoute, type CreatePatchRoute, type CreatePostRoute, type CreatePutRoute, type ErrorHandlerOptions, ErrorSeverity, type ErrorTransformContext, ErrorType, type ExtractMethod, type FileCache, type FindRouteFilesOptions, ForbiddenError, type ForbiddenErrorDetails, type GetContextFn, type Http2Options, type HttpMethod, type Infer, type InternalRequestArgs, InternalServerError, type InternalServerErrorDetails, type Matcher, type Middleware, MiddlewareAPI, type MiddlewareFunction, type MiddlewareOptions, type MultipartData, type MultipartError, type MultipartLimits, type NetworkErrorContext, type NextFunction, NotFoundError, type NotFoundErrorDetails, type ParseErrorContext, type ParseOptions, type ParseResult, type ParsedRoute, type ParserState, PayloadTooLargeError, type PayloadTooLargeErrorDetails, type Plugin, type PluginFactory, type PluginHooks, type PluginLifecycleManager, type PluginLifecycleOptions, type PluginOptions, PluginsAPI, type ProcessResponseOptions, type ProcessingConfig, type QueryParams, RateLimitError, type RateLimitErrorDetails, type ReloadMetrics, type RequestHandler, type RequestOptions, type RequestParams, RequestTimeoutError, type Result, type Route, type RouteDefinition, type RouteEntry, type RouteHandler, type RouteMatch, type RouteMethodOptions, type RouteNode, type RouteOptions, type RouteRegistry, type RouteSchema, type Router, RouterAPI, type RouterOptions, type Server, ServerAPI, type ServerOptions, type ServerOptionsInput, type StandardErrorResponse, type StartOptions, type State, type StopOptions, type StreamOptions, type TimeoutErrorContext, UnauthorizedError, type UnauthorizedErrorDetails, type UnifiedRequest, type UnifiedResponse, type UnknownFunction, UnprocessableEntityError, UnsupportedMediaTypeError, type UnsupportedMediaTypeErrorDetails, type UploadProgress, type UploadedFile, VERSION, type ValidationConfig, ValidationError, type ValidationErrorDetails, type ValidationFieldError, type WatchOptions, compose, createDeleteRoute, createGetRoute, createHeadRoute, create$2 as createMiddleware, createOptionsRoute, createPatchRoute, create$1 as createPlugin, createPostRoute, createPutRoute, create as createServer, Blaize as default, isBodyParseError };
package/dist/index.d.ts CHANGED
@@ -1803,6 +1803,22 @@ declare class InternalServerError extends BlaizeError<InternalServerErrorDetails
1803
1803
  constructor(title: string, details?: InternalServerErrorDetails | undefined, correlationId?: string | undefined);
1804
1804
  }
1805
1805
 
1806
+ declare class PayloadTooLargeError extends BlaizeError<PayloadTooLargeErrorDetails> {
1807
+ constructor(title: string, details?: PayloadTooLargeErrorDetails | undefined, correlationId?: string);
1808
+ }
1809
+
1810
+ declare class RequestTimeoutError extends BlaizeError {
1811
+ constructor(title: string, details?: unknown, correlationId?: string);
1812
+ }
1813
+
1814
+ declare class UnsupportedMediaTypeError extends BlaizeError {
1815
+ constructor(title: string, details?: unknown, correlationId?: string);
1816
+ }
1817
+
1818
+ declare class UnprocessableEntityError extends BlaizeError {
1819
+ constructor(title: string, details?: unknown, correlationId?: string);
1820
+ }
1821
+
1806
1822
  declare const VERSION = "0.1.0";
1807
1823
  declare const ServerAPI: {
1808
1824
  createServer: typeof create;
@@ -1850,4 +1866,4 @@ declare const Blaize: {
1850
1866
  VERSION: string;
1851
1867
  };
1852
1868
 
1853
- export { Blaize, BlaizeError, type BlaizeErrorResponse, type BodyParseError, type BuildRoutesRegistry, type ClientConfig, ConflictError, type ConflictErrorDetails, type Context, type ContextOptions, type ContextRequest, type ContextResponse, type CreateClient, type CreateContextFn, type CreateDeleteRoute, type CreateGetRoute, type CreateHeadRoute, type CreateOptionsRoute, type CreatePatchRoute, type CreatePostRoute, type CreatePutRoute, type ErrorHandlerOptions, ErrorSeverity, type ErrorTransformContext, ErrorType, type ExtractMethod, type FileCache, type FindRouteFilesOptions, ForbiddenError, type ForbiddenErrorDetails, type GetContextFn, type Http2Options, type HttpMethod, type Infer, type InternalRequestArgs, InternalServerError, type InternalServerErrorDetails, type Matcher, type Middleware, MiddlewareAPI, type MiddlewareFunction, type MiddlewareOptions, type MultipartData, type MultipartError, type MultipartLimits, type NetworkErrorContext, type NextFunction, NotFoundError, type NotFoundErrorDetails, type ParseErrorContext, type ParseOptions, type ParseResult, type ParsedRoute, type ParserState, type PayloadTooLargeErrorDetails, type Plugin, type PluginFactory, type PluginHooks, type PluginLifecycleManager, type PluginLifecycleOptions, type PluginOptions, PluginsAPI, type ProcessResponseOptions, type ProcessingConfig, type QueryParams, RateLimitError, type RateLimitErrorDetails, type ReloadMetrics, type RequestHandler, type RequestOptions, type RequestParams, type Result, type Route, type RouteDefinition, type RouteEntry, type RouteHandler, type RouteMatch, type RouteMethodOptions, type RouteNode, type RouteOptions, type RouteRegistry, type RouteSchema, type Router, RouterAPI, type RouterOptions, type Server, ServerAPI, type ServerOptions, type ServerOptionsInput, type StandardErrorResponse, type StartOptions, type State, type StopOptions, type StreamOptions, type TimeoutErrorContext, UnauthorizedError, type UnauthorizedErrorDetails, type UnifiedRequest, type UnifiedResponse, type UnknownFunction, type UnsupportedMediaTypeErrorDetails, type UploadProgress, type UploadedFile, VERSION, type ValidationConfig, ValidationError, type ValidationErrorDetails, type ValidationFieldError, type WatchOptions, compose, createDeleteRoute, createGetRoute, createHeadRoute, create$2 as createMiddleware, createOptionsRoute, createPatchRoute, create$1 as createPlugin, createPostRoute, createPutRoute, create as createServer, Blaize as default, isBodyParseError };
1869
+ export { Blaize, BlaizeError, type BlaizeErrorResponse, type BodyParseError, type BuildRoutesRegistry, type ClientConfig, ConflictError, type ConflictErrorDetails, type Context, type ContextOptions, type ContextRequest, type ContextResponse, type CreateClient, type CreateContextFn, type CreateDeleteRoute, type CreateGetRoute, type CreateHeadRoute, type CreateOptionsRoute, type CreatePatchRoute, type CreatePostRoute, type CreatePutRoute, type ErrorHandlerOptions, ErrorSeverity, type ErrorTransformContext, ErrorType, type ExtractMethod, type FileCache, type FindRouteFilesOptions, ForbiddenError, type ForbiddenErrorDetails, type GetContextFn, type Http2Options, type HttpMethod, type Infer, type InternalRequestArgs, InternalServerError, type InternalServerErrorDetails, type Matcher, type Middleware, MiddlewareAPI, type MiddlewareFunction, type MiddlewareOptions, type MultipartData, type MultipartError, type MultipartLimits, type NetworkErrorContext, type NextFunction, NotFoundError, type NotFoundErrorDetails, type ParseErrorContext, type ParseOptions, type ParseResult, type ParsedRoute, type ParserState, PayloadTooLargeError, type PayloadTooLargeErrorDetails, type Plugin, type PluginFactory, type PluginHooks, type PluginLifecycleManager, type PluginLifecycleOptions, type PluginOptions, PluginsAPI, type ProcessResponseOptions, type ProcessingConfig, type QueryParams, RateLimitError, type RateLimitErrorDetails, type ReloadMetrics, type RequestHandler, type RequestOptions, type RequestParams, RequestTimeoutError, type Result, type Route, type RouteDefinition, type RouteEntry, type RouteHandler, type RouteMatch, type RouteMethodOptions, type RouteNode, type RouteOptions, type RouteRegistry, type RouteSchema, type Router, RouterAPI, type RouterOptions, type Server, ServerAPI, type ServerOptions, type ServerOptionsInput, type StandardErrorResponse, type StartOptions, type State, type StopOptions, type StreamOptions, type TimeoutErrorContext, UnauthorizedError, type UnauthorizedErrorDetails, type UnifiedRequest, type UnifiedResponse, type UnknownFunction, UnprocessableEntityError, UnsupportedMediaTypeError, type UnsupportedMediaTypeErrorDetails, type UploadProgress, type UploadedFile, VERSION, type ValidationConfig, ValidationError, type ValidationErrorDetails, type ValidationFieldError, type WatchOptions, compose, createDeleteRoute, createGetRoute, createHeadRoute, create$2 as createMiddleware, createOptionsRoute, createPatchRoute, create$1 as createPlugin, createPostRoute, createPutRoute, create as createServer, Blaize as default, isBodyParseError };
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
+
1
2
  /**
2
- * blaizejs v0.3.1
3
+ * blaizejs v0.3.2
3
4
  * A blazing-fast, TypeScript-first Node.js framework with HTTP/2 support, file-based routing, powerful middleware system, and end-to-end type safety for building modern APIs.
4
5
  *
5
6
  * Copyright (c) 2025 BlaizeJS Contributors
@@ -8,10 +9,16 @@
8
9
 
9
10
  import {
10
11
  InternalServerError
11
- } from "./chunk-ZZEQFU5V.js";
12
+ } from "./chunk-CQKM74J4.js";
12
13
  import {
13
14
  ValidationError
14
- } from "./chunk-3A5J5MKL.js";
15
+ } from "./chunk-HB6MRTGD.js";
16
+ import {
17
+ PayloadTooLargeError
18
+ } from "./chunk-3VK325MM.js";
19
+ import {
20
+ UnsupportedMediaTypeError
21
+ } from "./chunk-7IM52S7P.js";
15
22
  import {
16
23
  BlaizeError,
17
24
  ErrorSeverity,
@@ -20,7 +27,7 @@ import {
20
27
  generateCorrelationId,
21
28
  getCurrentCorrelationId,
22
29
  isBodyParseError
23
- } from "./chunk-SF7ZGOEK.js";
30
+ } from "./chunk-IFP53BNM.js";
24
31
 
25
32
  // src/middleware/execute.ts
26
33
  function execute(middleware, ctx, next) {
@@ -503,7 +510,7 @@ async function processCurrentStage(state) {
503
510
  case "content":
504
511
  return processContent(state);
505
512
  default: {
506
- const { InternalServerError: InternalServerError2 } = await import("./internal-server-error-PKVC3ZEU.js");
513
+ const { InternalServerError: InternalServerError2 } = await import("./internal-server-error-PVME2DGN.js");
507
514
  throw new InternalServerError2(`Invalid parser stage`, {
508
515
  operation: state.stage
509
516
  });
@@ -542,22 +549,22 @@ async function processHeaders(state) {
542
549
  const buffer = state.buffer.subarray(headerEnd + 4);
543
550
  const disposition = parseContentDisposition(headers);
544
551
  if (!disposition) {
545
- const { ValidationError: ValidationError2 } = await import("./validation-error-WZFF75S7.js");
552
+ const { ValidationError: ValidationError2 } = await import("./validation-error-TXMSFWZL.js");
546
553
  throw new ValidationError2("Missing or invalid Content-Disposition header");
547
554
  }
548
555
  const mimetype = parseContentType(headers);
549
556
  const isFile = disposition.filename !== void 0;
550
557
  if (isFile && state.fileCount >= state.options.maxFiles) {
551
- const { PayloadTooLargeError } = await import("./payload-too-large-error-WZMDORKR.js");
552
- throw new PayloadTooLargeError("Too many files in upload", {
558
+ const { PayloadTooLargeError: PayloadTooLargeError2 } = await import("./payload-too-large-error-QQG7MKGT.js");
559
+ throw new PayloadTooLargeError2("Too many files in upload", {
553
560
  fileCount: state.fileCount + 1,
554
561
  maxFiles: state.options.maxFiles,
555
562
  filename: disposition.filename
556
563
  });
557
564
  }
558
565
  if (isFile && state.options.allowedMimeTypes.length > 0 && !state.options.allowedMimeTypes.includes(mimetype)) {
559
- const { UnsupportedMediaTypeError } = await import("./unsupported-media-type-error-VUXOJ72O.js");
560
- throw new UnsupportedMediaTypeError("File type not allowed", {
566
+ const { UnsupportedMediaTypeError: UnsupportedMediaTypeError2 } = await import("./unsupported-media-type-error-VVHRDTUH.js");
567
+ throw new UnsupportedMediaTypeError2("File type not allowed", {
561
568
  receivedMimeType: mimetype,
562
569
  allowedMimeTypes: state.options.allowedMimeTypes,
563
570
  filename: disposition.filename
@@ -613,7 +620,7 @@ async function processContentChunk(state, chunk) {
613
620
  const maxSize = state.currentFilename !== void 0 ? state.options.maxFileSize : state.options.maxFieldSize;
614
621
  if (newContentLength > maxSize) {
615
622
  const isFile = state.currentFilename !== void 0;
616
- const { PayloadTooLargeError } = await import("./payload-too-large-error-WZMDORKR.js");
623
+ const { PayloadTooLargeError: PayloadTooLargeError2 } = await import("./payload-too-large-error-QQG7MKGT.js");
617
624
  const payloadErrorDetals = state.currentField ? {
618
625
  contentType: isFile ? "file" : "field",
619
626
  currentSize: newContentLength,
@@ -626,7 +633,7 @@ async function processContentChunk(state, chunk) {
626
633
  maxSize,
627
634
  filename: state.currentFilename
628
635
  };
629
- throw new PayloadTooLargeError(
636
+ throw new PayloadTooLargeError2(
630
637
  `${isFile ? "File" : "Field"} size exceeds limit`,
631
638
  payloadErrorDetals
632
639
  );
@@ -660,7 +667,7 @@ async function processFileChunk(state, chunk, newContentLength) {
660
667
  }
661
668
  return { ...state, currentContentLength: newContentLength };
662
669
  default: {
663
- const { ValidationError: ValidationError2 } = await import("./validation-error-WZFF75S7.js");
670
+ const { ValidationError: ValidationError2 } = await import("./validation-error-TXMSFWZL.js");
664
671
  throw new ValidationError2(`Invalid parsing strategy`);
665
672
  }
666
673
  }
@@ -703,7 +710,7 @@ async function initializeFileProcessing(state) {
703
710
  };
704
711
  }
705
712
  default: {
706
- const { ValidationError: ValidationError2 } = await import("./validation-error-WZFF75S7.js");
713
+ const { ValidationError: ValidationError2 } = await import("./validation-error-TXMSFWZL.js");
707
714
  throw new ValidationError2(`Invalid file processing strategy`);
708
715
  }
709
716
  }
@@ -742,7 +749,7 @@ async function finalizeFile(state) {
742
749
  stream = Readable.from(Buffer.alloc(0));
743
750
  break;
744
751
  default: {
745
- const { ValidationError: ValidationError2 } = await import("./validation-error-WZFF75S7.js");
752
+ const { ValidationError: ValidationError2 } = await import("./validation-error-TXMSFWZL.js");
746
753
  throw new ValidationError2(`Invalid file finalization strategy`);
747
754
  }
748
755
  }
@@ -791,11 +798,11 @@ function addToCollection(collection, key, value) {
791
798
  }
792
799
  async function finalize(state) {
793
800
  if (!state.hasFoundValidBoundary) {
794
- const { ValidationError: ValidationError2 } = await import("./validation-error-WZFF75S7.js");
801
+ const { ValidationError: ValidationError2 } = await import("./validation-error-TXMSFWZL.js");
795
802
  throw new ValidationError2("No valid multipart boundary found");
796
803
  }
797
804
  if (state.hasFoundValidBoundary && !state.hasProcessedAnyPart) {
798
- const { ValidationError: ValidationError2 } = await import("./validation-error-WZFF75S7.js");
805
+ const { ValidationError: ValidationError2 } = await import("./validation-error-TXMSFWZL.js");
799
806
  throw new ValidationError2("Empty multipart request");
800
807
  }
801
808
  const fields = {};
@@ -834,8 +841,8 @@ async function parseMultipartRequest(request, options = {}) {
834
841
  const contentType = request.headers["content-type"] || "";
835
842
  const boundary = extractBoundary(contentType);
836
843
  if (!boundary) {
837
- const { UnsupportedMediaTypeError } = await import("./unsupported-media-type-error-VUXOJ72O.js");
838
- throw new UnsupportedMediaTypeError("Missing boundary in multipart content-type", {
844
+ const { UnsupportedMediaTypeError: UnsupportedMediaTypeError2 } = await import("./unsupported-media-type-error-VVHRDTUH.js");
845
+ throw new UnsupportedMediaTypeError2("Missing boundary in multipart content-type", {
839
846
  receivedContentType: contentType,
840
847
  expectedFormat: "multipart/form-data; boundary=..."
841
848
  });
@@ -3073,6 +3080,32 @@ var RateLimitError = class extends BlaizeError {
3073
3080
  }
3074
3081
  };
3075
3082
 
3083
+ // src/errors/request-timeout-error.ts
3084
+ var RequestTimeoutError = class extends BlaizeError {
3085
+ constructor(title, details, correlationId) {
3086
+ super(
3087
+ "UPLOAD_TIMEOUT" /* UPLOAD_TIMEOUT */,
3088
+ title,
3089
+ 408,
3090
+ correlationId ?? getCurrentCorrelationId(),
3091
+ details
3092
+ );
3093
+ }
3094
+ };
3095
+
3096
+ // src/errors/unprocessable-entity-error.ts
3097
+ var UnprocessableEntityError = class extends BlaizeError {
3098
+ constructor(title, details, correlationId) {
3099
+ super(
3100
+ "UNPROCESSABLE_ENTITY" /* UNPROCESSABLE_ENTITY */,
3101
+ title,
3102
+ 422,
3103
+ correlationId ?? getCurrentCorrelationId(),
3104
+ details
3105
+ );
3106
+ }
3107
+ };
3108
+
3076
3109
  // src/index.ts
3077
3110
  var VERSION = "0.1.0";
3078
3111
  var ServerAPI = { createServer: create3 };
@@ -3111,11 +3144,15 @@ export {
3111
3144
  InternalServerError,
3112
3145
  MiddlewareAPI,
3113
3146
  NotFoundError,
3147
+ PayloadTooLargeError,
3114
3148
  PluginsAPI,
3115
3149
  RateLimitError,
3150
+ RequestTimeoutError,
3116
3151
  RouterAPI,
3117
3152
  ServerAPI,
3118
3153
  UnauthorizedError,
3154
+ UnprocessableEntityError,
3155
+ UnsupportedMediaTypeError,
3119
3156
  VERSION,
3120
3157
  ValidationError,
3121
3158
  compose,