AngelHttpException.badRequest constructor

AngelHttpException.badRequest(
  1. {String message: '400 Bad Request',
  2. List<String> errors: const []}
)

Throws a 400 Bad Request error, including an optional arrray of (validation?) errors you specify.

Implementation

factory AngelHttpException.badRequest(
        {String message = '400 Bad Request',
        List<String> errors = const []}) =>
    new AngelHttpException(null,
        message: message, errors: errors, statusCode: 400);