ResponseEntity.methodNotAllowed constructor

ResponseEntity.methodNotAllowed({
  1. Object? body,
  2. Map<String, Object>? headers,
})

Implementation

ResponseEntity.methodNotAllowed({
  Object? body,
  Map<String, /* String | List<String> */ Object>? headers,
}) : this(
        HttpStatus.methodNotAllowed.value,
        body: body ?? 'Method not allowed',
        headers: headers,
      );