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