MethodNotAllowedHttpException constructor

MethodNotAllowedHttpException(
  1. List<String> allow, {
  2. dynamic message,
  3. String? errorCode,
})

Implementation

MethodNotAllowedHttpException(this.allow, {super.message, super.errorCode})
  : super(
      HttpStatus.methodNotAllowed,
      headers: <String, String>{'allow': allow.join(', ')},
    );