diff --git a/packages/cache/pubspec.yaml b/packages/cache/pubspec.yaml index 0a8264eb..1c067e3a 100644 --- a/packages/cache/pubspec.yaml +++ b/packages/cache/pubspec.yaml @@ -1,6 +1,6 @@ name: angel3_cache version: 4.0.0 -description: Support for server-side caching in Angel3 Framework +description: Support server-side caching of reponse data from services. homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/cache environment: sdk: '>=2.12.0 <3.0.0' diff --git a/packages/framework/lib/src/core/driver.dart b/packages/framework/lib/src/core/driver.dart index 2ebd6836..37432379 100644 --- a/packages/framework/lib/src/core/driver.dart +++ b/packages/framework/lib/src/core/driver.dart @@ -188,7 +188,7 @@ abstract class Driver< } throw AngelHttpException(e, stackTrace: st, - statusCode: 500, + statusCode: (e is AngelHttpException) ? e.statusCode : 500, message: e?.toString() ?? '500 Internal Server Error'); }, test: (e) => e is AngelHttpException).catchError( (ee, StackTrace st) {