Configuration options for the tryCatch function.
// Basic configuration{ defaultStatus: 400 }// With custom error class{ ErrorClass: ApiError, defaultStatus: 500 } Copy
// Basic configuration{ defaultStatus: 400 }// With custom error class{ ErrorClass: ApiError, defaultStatus: 500 }
The type of error class to use for error transformation
Optional
Default HTTP status code to use when caught error has no status property.
500 Copy
500
Custom error class constructor for transforming caught errors. If provided, all caught errors will be converted to instances of this class.
Error Copy
Error
Configuration options for the tryCatch function.
Example